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

    if (reader.peek() == JsonToken.NUMBER) {
      // Number is the number of seconds since Epoch.
      return Instant.ofEpochMilli(reader.nextLong() * 1000L);
    }

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