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