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