Class CardAttackTypeAdapter

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

public class CardAttackTypeAdapter extends Object implements com.google.gson.JsonDeserializer<CardAttack>, com.google.gson.JsonSerializer<CardAttack>
  • Constructor Details

    • CardAttackTypeAdapter

      public CardAttackTypeAdapter()
  • Method Details

    • deserialize

      public CardAttack 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<CardAttack>
      Throws:
      com.google.gson.JsonParseException
    • serialize

      public com.google.gson.JsonElement serialize(CardAttack src, Type typeOfSrc, com.google.gson.JsonSerializationContext context)
      Specified by:
      serialize in interface com.google.gson.JsonSerializer<CardAttack>