Class ImmutableCardTypeAdapter

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

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

    • ImmutableCardTypeAdapter

      public ImmutableCardTypeAdapter()
  • Method Details

    • deserialize

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

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