Class ZMoveAdapter

java.lang.Object
com.pixelmonmod.pixelmon.battles.attacks.ZMoveAdapter
All Implemented Interfaces:
com.google.gson.JsonDeserializer<ZMove>, com.google.gson.JsonSerializer<ZMove>

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

    • ZMoveAdapter

      public ZMoveAdapter()
  • Method Details

    • serialize

      public com.google.gson.JsonElement serialize(ZMove zMove, Type type, com.google.gson.JsonSerializationContext ctx)
      Specified by:
      serialize in interface com.google.gson.JsonSerializer<ZMove>
    • deserialize

      public ZMove deserialize(com.google.gson.JsonElement json, Type type, com.google.gson.JsonDeserializationContext ctx) throws com.google.gson.JsonParseException
      Specified by:
      deserialize in interface com.google.gson.JsonDeserializer<ZMove>
      Throws:
      com.google.gson.JsonParseException