Class ITechnicalMove.Adapter

java.lang.Object
com.pixelmonmod.pixelmon.enums.technicalmoves.ITechnicalMove.Adapter
All Implemented Interfaces:
com.google.gson.JsonDeserializer<ITechnicalMove>, com.google.gson.JsonSerializer<ITechnicalMove>
Enclosing interface:
ITechnicalMove

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

    • Adapter

      public Adapter()
  • Method Details

    • serialize

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

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