Class GroupSpawnSettings.TypeAdapter

java.lang.Object
com.pixelmonmod.pixelmon.api.spawning.archetypes.group.GroupSpawnSettings.TypeAdapter
All Implemented Interfaces:
com.google.gson.JsonDeserializer<GroupSpawnSettings>, com.google.gson.JsonSerializer<GroupSpawnSettings>
Enclosing class:
GroupSpawnSettings

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

    • TypeAdapter

      public TypeAdapter()
  • Method Details

    • deserialize

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

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