Class CardPowerTypeAdapter

java.lang.Object
com.pixelmonmod.tcg.api.typeadapters.CardPowerTypeAdapter
All Implemented Interfaces:
com.google.gson.JsonDeserializer<CardPower>, com.google.gson.JsonSerializer<CardPower>

public class CardPowerTypeAdapter extends Object implements com.google.gson.JsonSerializer<CardPower>, com.google.gson.JsonDeserializer<CardPower>
  • 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 interface com.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 interface com.google.gson.JsonSerializer<CardPower>