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