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