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