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