public interface Serializer<T>
| Modifier and Type | Method and Description |
|---|---|
T |
deserialize(com.google.gson.JsonObject json)
Deserializes the given json to some data.
|
com.google.gson.JsonObject |
serialize(T value)
Serializes the given data to json.
|
T deserialize(com.google.gson.JsonObject json) throws com.google.gson.JsonParseException
com.google.gson.JsonParseException - if the given json does not match the expected formatcom.google.gson.JsonObject serialize(T value)