Class ThemeDeckTypeAdapter
java.lang.Object
com.pixelmonmod.tcg.api.typeadapters.ThemeDeckTypeAdapter
- All Implemented Interfaces:
com.google.gson.JsonDeserializer<ThemeDeck>
,com.google.gson.JsonSerializer<ThemeDeck>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondeserialize
(com.google.gson.JsonElement json, Type typeOfT, com.google.gson.JsonDeserializationContext context) protected List<ImmutableCard>
getCardsFromJSONArray
(com.google.gson.JsonArray cardsArray) com.google.gson.JsonElement
-
Constructor Details
-
ThemeDeckTypeAdapter
public ThemeDeckTypeAdapter()
-
-
Method Details
-
deserialize
public ThemeDeck 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<ThemeDeck>
- Throws:
com.google.gson.JsonParseException
-
serialize
public com.google.gson.JsonElement serialize(ThemeDeck src, Type typeOfSrc, com.google.gson.JsonSerializationContext context) - Specified by:
serialize
in interfacecom.google.gson.JsonSerializer<ThemeDeck>
-
getCardsFromJSONArray
-