Class Element.TypeAdapter

java.lang.Object
com.pixelmonmod.pixelmon.api.pokemon.Element.TypeAdapter
All Implemented Interfaces:
com.google.gson.JsonDeserializer<Element>, com.google.gson.JsonSerializer<Element>
Enclosing class:
Element

public static class Element.TypeAdapter extends Object implements com.google.gson.JsonSerializer<Element>, com.google.gson.JsonDeserializer<Element>
  • Constructor Details

    • TypeAdapter

      public TypeAdapter()
  • Method Details

    • deserialize

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

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