Class InterfaceDeserializer<T>
- java.lang.Object
-
- io.github.astrapi69.gson.deserializer.InterfaceDeserializer<T>
-
- All Implemented Interfaces:
com.google.gson.JsonDeserializer<T>
public class InterfaceDeserializer<T> extends java.lang.Object implements com.google.gson.JsonDeserializer<T>
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
PROPERTY_DATA
static java.lang.String
PROPERTY_TYPE
-
Constructor Summary
Constructors Constructor Description InterfaceDeserializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
deserialize(com.google.gson.JsonElement jsonElement, java.lang.reflect.Type interfaceType, com.google.gson.JsonDeserializationContext context)
-
-
-
Field Detail
-
PROPERTY_TYPE
public static final java.lang.String PROPERTY_TYPE
- See Also:
- Constant Field Values
-
PROPERTY_DATA
public static final java.lang.String PROPERTY_DATA
- See Also:
- Constant Field Values
-
-
Method Detail
-
deserialize
public T deserialize(com.google.gson.JsonElement jsonElement, java.lang.reflect.Type interfaceType, com.google.gson.JsonDeserializationContext context) throws com.google.gson.JsonParseException
- Specified by:
deserialize
in interfacecom.google.gson.JsonDeserializer<T>
- Throws:
com.google.gson.JsonParseException
-
-