Class StarterTypeAdapter

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

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

    • StarterTypeAdapter

      public StarterTypeAdapter()
  • Method Details

    • deserialize

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

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