Package com.walkfares.odsl.var.adaptor
Class VarDynamicObjectAdaptor
java.lang.Object
com.walkfares.odsl.var.adaptor.VarDynamicObjectAdaptor
- All Implemented Interfaces:
com.google.gson.JsonDeserializer<VarDynamicObject>
,com.google.gson.JsonSerializer<VarDynamicObject>
public class VarDynamicObjectAdaptor extends Object implements com.google.gson.JsonSerializer<VarDynamicObject>, com.google.gson.JsonDeserializer<VarDynamicObject>
-
Constructor Summary
Constructors Constructor Description VarDynamicObjectAdaptor()
-
Method Summary
Modifier and Type Method Description VarDynamicObject
deserialize(com.google.gson.JsonElement json, Type typeOfT, com.google.gson.JsonDeserializationContext context)
com.google.gson.JsonElement
serialize(VarDynamicObject src, Type typeOfSrc, com.google.gson.JsonSerializationContext context)
-
Constructor Details
-
VarDynamicObjectAdaptor
public VarDynamicObjectAdaptor()
-
-
Method Details
-
deserialize
public VarDynamicObject deserialize(com.google.gson.JsonElement json, Type typeOfT, com.google.gson.JsonDeserializationContext context) throws com.google.gson.JsonParseException- Specified by:
deserialize
in interfacecom.google.gson.JsonDeserializer<VarDynamicObject>
- Throws:
com.google.gson.JsonParseException
-
serialize
public com.google.gson.JsonElement serialize(VarDynamicObject src, Type typeOfSrc, com.google.gson.JsonSerializationContext context)- Specified by:
serialize
in interfacecom.google.gson.JsonSerializer<VarDynamicObject>
-