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