Class CardSetTypeAdapter

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

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

    • CardSetTypeAdapter

      public CardSetTypeAdapter()
  • Method Details

    • deserialize

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

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