Package io.didomi.sdk.remote
Class GSONInterfaceAdapter<T>
- java.lang.Object
-
- io.didomi.sdk.remote.GSONInterfaceAdapter<T>
-
- All Implemented Interfaces:
com.google.gson.JsonDeserializer<T>,com.google.gson.JsonSerializer<T>
public class GSONInterfaceAdapter<T> extends java.lang.Object implements com.google.gson.JsonSerializer<T>, com.google.gson.JsonDeserializer<T>
-
-
Constructor Summary
Constructors Constructor Description GSONInterfaceAdapter(java.lang.Class klazz)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Tdeserialize(com.google.gson.JsonElement jsonElement, java.lang.reflect.Type type, com.google.gson.JsonDeserializationContext jsonDeserializationContext)com.google.gson.JsonElementserialize(T jsonElement, java.lang.reflect.Type type, com.google.gson.JsonSerializationContext jsonSerializationContext)
-
-
-
Method Detail
-
deserialize
public T deserialize(com.google.gson.JsonElement jsonElement, java.lang.reflect.Type type, com.google.gson.JsonDeserializationContext jsonDeserializationContext) throws com.google.gson.JsonParseException
- Specified by:
deserializein interfacecom.google.gson.JsonDeserializer<T>- Throws:
com.google.gson.JsonParseException
-
-