Class StarterOptionTypeAdapter

java.lang.Object
com.pixelmonmod.pixelmon.config.starter.StarterOptionTypeAdapter
All Implemented Interfaces:
com.google.gson.JsonDeserializer<StarterOption>, com.google.gson.JsonSerializer<StarterOption>

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

    • StarterOptionTypeAdapter

      public StarterOptionTypeAdapter()
  • Method Details

    • deserialize

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

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