java.lang.Object
com.pixelmonmod.pixelmon.api.pokemon.species.typeadapters.FormTagsTypeAdapter
All Implemented Interfaces:
com.google.gson.JsonDeserializer<FormTags>, com.google.gson.JsonSerializer<FormTags>

public class FormTagsTypeAdapter extends Object implements com.google.gson.JsonSerializer<FormTags>, com.google.gson.JsonDeserializer<FormTags>
Gson type TypeAdapter for the FormTags class such that it can be converted to and from Json text when loading to/from Species data.
  • Constructor Details

    • FormTagsTypeAdapter

      public FormTagsTypeAdapter()
  • Method Details

    • deserialize

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

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