Package com.walkfares.odsl.var.adaptor
Class VarLinksAdaptor
java.lang.Object
com.walkfares.odsl.var.adaptor.VarLinksAdaptor
- All Implemented Interfaces:
com.google.gson.JsonDeserializer<VarLinks>
,com.google.gson.JsonSerializer<VarLinks>
public class VarLinksAdaptor extends Object implements com.google.gson.JsonSerializer<VarLinks>, com.google.gson.JsonDeserializer<VarLinks>
-
Constructor Summary
Constructors Constructor Description VarLinksAdaptor()
-
Method Summary
Modifier and Type Method Description VarLinks
deserialize(com.google.gson.JsonElement jsonElement, Type type, com.google.gson.JsonDeserializationContext jsonDeserializationContext)
com.google.gson.JsonElement
serialize(VarLinks links, Type type, com.google.gson.JsonSerializationContext jsonSerializationContext)
-
Constructor Details
-
VarLinksAdaptor
public VarLinksAdaptor()
-
-
Method Details
-
deserialize
public VarLinks deserialize(com.google.gson.JsonElement jsonElement, Type type, com.google.gson.JsonDeserializationContext jsonDeserializationContext) throws com.google.gson.JsonParseException- Specified by:
deserialize
in interfacecom.google.gson.JsonDeserializer<VarLinks>
- Throws:
com.google.gson.JsonParseException
-
serialize
public com.google.gson.JsonElement serialize(VarLinks links, Type type, com.google.gson.JsonSerializationContext jsonSerializationContext)- Specified by:
serialize
in interfacecom.google.gson.JsonSerializer<VarLinks>
-