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