Class PalettePropertiesTypeAdapter
java.lang.Object
com.pixelmonmod.pixelmon.api.pokemon.species.palette.PalettePropertiesTypeAdapter
- All Implemented Interfaces:
com.google.gson.JsonDeserializer<PaletteProperties>
,com.google.gson.JsonSerializer<PaletteProperties>
public class PalettePropertiesTypeAdapter
extends Object
implements com.google.gson.JsonSerializer<PaletteProperties>, com.google.gson.JsonDeserializer<PaletteProperties>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondeserialize
(com.google.gson.JsonElement json, Type typeOfT, com.google.gson.JsonDeserializationContext context) com.google.gson.JsonElement
serialize
(PaletteProperties src, Type typeOfSrc, com.google.gson.JsonSerializationContext context)
-
Constructor Details
-
PalettePropertiesTypeAdapter
public PalettePropertiesTypeAdapter()
-
-
Method Details
-
deserialize
public PaletteProperties 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<PaletteProperties>
- Throws:
com.google.gson.JsonParseException
-
serialize
public com.google.gson.JsonElement serialize(PaletteProperties src, Type typeOfSrc, com.google.gson.JsonSerializationContext context) - Specified by:
serialize
in interfacecom.google.gson.JsonSerializer<PaletteProperties>
-