public class GeometryDeserializer extends Object implements com.google.gson.JsonDeserializer<Geometry>
Geometry
error
that Gson shows when trying to deserialize a list of Geometry
.Constructor and Description |
---|
GeometryDeserializer() |
Modifier and Type | Method and Description |
---|---|
Geometry |
deserialize(com.google.gson.JsonElement json,
Type typeOfT,
com.google.gson.JsonDeserializationContext context)
|
public Geometry deserialize(com.google.gson.JsonElement json, Type typeOfT, com.google.gson.JsonDeserializationContext context) throws com.google.gson.JsonParseException
Geometry
error that Gson shows when trying to deserialize a list of Geometry
.deserialize
in interface com.google.gson.JsonDeserializer<Geometry>
json
- A class representing an element of Json.typeOfT
- Common superinterface for all types in the Java.context
- Context for deserialization that is passed to a custom deserializer during
invocation of its JsonDeserializer.deserialize(JsonElement, Type,
JsonDeserializationContext)
method.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.