Class CardSetTypeAdapter
java.lang.Object
com.pixelmonmod.tcg.api.typeadapters.CardSetTypeAdapter
- All Implemented Interfaces:
com.google.gson.JsonDeserializer<CardSet>
,com.google.gson.JsonSerializer<CardSet>
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
CardSetTypeAdapter
public CardSetTypeAdapter()
-
-
Method Details
-
deserialize
public CardSet 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<CardSet>
- Throws:
com.google.gson.JsonParseException
-
serialize
public com.google.gson.JsonElement serialize(CardSet src, Type typeOfSrc, com.google.gson.JsonSerializationContext context) - Specified by:
serialize
in interfacecom.google.gson.JsonSerializer<CardSet>
-