public class CarmenGeometryDeserializer extends Object implements com.google.gson.JsonDeserializer<com.mapbox.services.commons.geojson.Geometry>
Constructor and Description |
---|
CarmenGeometryDeserializer() |
Modifier and Type | Method and Description |
---|---|
com.mapbox.services.commons.geojson.Geometry |
deserialize(com.google.gson.JsonElement json,
Type typeOfT,
com.google.gson.JsonDeserializationContext context)
A custom deserializer for Gson, used for the Geocoder.
|
public com.mapbox.services.commons.geojson.Geometry deserialize(com.google.gson.JsonElement json, Type typeOfT, com.google.gson.JsonDeserializationContext context) throws com.google.gson.JsonParseException
deserialize
in interface com.google.gson.JsonDeserializer<com.mapbox.services.commons.geojson.Geometry>
json
- The Json data being deserialized.typeOfT
- The type of the Object to deserialize to.context
- Context for deserialization.com.google.gson.JsonParseException
- This exception is raised if there is a serious issue that occurs
during parsing of a Json string.© 2015–2016 Mapbox. All rights reserved.