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