@Override
  public LocalTime read(JsonReader reader) throws IOException {
    if (reader.peek() == JsonToken.NULL) {
      reader.nextNull();
      return null;
    }

    if (reader.peek() == JsonToken.STRING) {
      DateTimeFormatter dtf = DateTimeFormatter.ofPattern("HHmm");
      return LocalTime.parse(reader.nextString(), dtf);
    }

    throw new UnsupportedOperationException("Unsupported format");
  }
Read a time from the Places API and convert to a {@link LocalTime}
src/main/java/com/google/maps/internal/LocalTimeAdapter.java