public class PalettePropertiesTypeAdapter extends java.lang.Object implements com.google.gson.JsonSerializer<PaletteProperties>, com.google.gson.JsonDeserializer<PaletteProperties>
Gson
type TypeAdapter
for the PaletteProperties
class such that it can be converted
to and from Json text when loading to/from Species
data.Constructor and Description |
---|
PalettePropertiesTypeAdapter() |
Modifier and Type | Method and Description |
---|---|
PaletteProperties |
deserialize(com.google.gson.JsonElement json,
java.lang.reflect.Type typeOfT,
com.google.gson.JsonDeserializationContext context) |
com.google.gson.JsonElement |
serialize(PaletteProperties src,
java.lang.reflect.Type typeOfSrc,
com.google.gson.JsonSerializationContext context) |
public PaletteProperties deserialize(com.google.gson.JsonElement json, java.lang.reflect.Type typeOfT, com.google.gson.JsonDeserializationContext context) throws com.google.gson.JsonParseException
deserialize
in interface com.google.gson.JsonDeserializer<PaletteProperties>
com.google.gson.JsonParseException
public com.google.gson.JsonElement serialize(PaletteProperties src, java.lang.reflect.Type typeOfSrc, com.google.gson.JsonSerializationContext context)
serialize
in interface com.google.gson.JsonSerializer<PaletteProperties>