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 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 interface com.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 interface com.google.gson.JsonSerializer<BaseTrainerEffect>