Constructor and Description |
---|
ThemeDeckTypeAdapter() |
Modifier and Type | Method and Description |
---|---|
ThemeDeck |
deserialize(com.google.gson.JsonElement json,
java.lang.reflect.Type typeOfT,
com.google.gson.JsonDeserializationContext context) |
protected java.util.List<ImmutableCard> |
getCardsFromJSONArray(com.google.gson.JsonArray cardsArray) |
com.google.gson.JsonElement |
serialize(ThemeDeck src,
java.lang.reflect.Type typeOfSrc,
com.google.gson.JsonSerializationContext context) |
public ThemeDeck 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<ThemeDeck>
com.google.gson.JsonParseException
public com.google.gson.JsonElement serialize(ThemeDeck src, java.lang.reflect.Type typeOfSrc, com.google.gson.JsonSerializationContext context)
serialize
in interface com.google.gson.JsonSerializer<ThemeDeck>
protected java.util.List<ImmutableCard> getCardsFromJSONArray(com.google.gson.JsonArray cardsArray)