code: @Override
    public Duration read(JsonReader reader) throws IOException {
      if (reader.peek() == JsonToken.NULL) {
        reader.nextNull();
        return null;
      }
  
      Duration duration = new Duration();
  
      reader.beginObject();
      while (reader.hasNext()) {
        String name = reader.nextName();
        if (name.equals("text")) {
          duration.humanReadable = reader.nextString();
        } else if (name.equals("value")) {
          duration.inSeconds = reader.nextLong();
        }
      }
      reader.endObject();
  
      return duration;
    }
docs: Read a distance object from a Directions API result and convert it to a {@link Distance}.
  
  <p>We are expecting to receive something akin to the following:
  
  <pre>
  {
  "value": 207,
  "text": "0.1 mi"
  }
  </pre>