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