public class GeometryDeserializer extends java.lang.Object implements com.google.gson.JsonDeserializer<Geometry>
Geometry
error
that Gson shows when trying to deserialize a list of Geometry
.Constructor and Description |
---|
GeometryDeserializer()
Empty constructor to prevent relying on the default one.
|
Modifier and Type | Method and Description |
---|---|
Geometry |
deserialize(com.google.gson.JsonElement json,
java.lang.reflect.Type typeOfT,
com.google.gson.JsonDeserializationContext context)
|
public GeometryDeserializer()
public Geometry deserialize(com.google.gson.JsonElement json, java.lang.reflect.Type typeOfT, com.google.gson.JsonDeserializationContext context)
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.