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