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 Summary
-
Method Summary
Modifier and TypeMethodDescriptiondeserialize
(com.google.gson.JsonElement json, Type typeOfT, com.google.gson.JsonDeserializationContext context) com.google.gson.JsonElement
serialize
(ITechnicalMove src, Type typeOfSrc, com.google.gson.JsonSerializationContext context)
-
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 interfacecom.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 interfacecom.google.gson.JsonDeserializer<ITechnicalMove>
- Throws:
com.google.gson.JsonParseException
-