Package net.mcreator.element.parts.gui
Class GUIComponent.GSONAdapter
java.lang.Object
net.mcreator.element.parts.gui.GUIComponent.GSONAdapter
- All Implemented Interfaces:
com.google.gson.JsonDeserializer<GUIComponent>
,com.google.gson.JsonSerializer<GUIComponent>
- Enclosing class:
GUIComponent
public static class GUIComponent.GSONAdapter
extends Object
implements com.google.gson.JsonSerializer<GUIComponent>, com.google.gson.JsonDeserializer<GUIComponent>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondeserialize
(com.google.gson.JsonElement jsonElement, Type type, com.google.gson.JsonDeserializationContext jsonDeserializationContext) com.google.gson.JsonElement
serialize
(GUIComponent element, Type type, com.google.gson.JsonSerializationContext jsonSerializationContext)
-
Constructor Details
-
GSONAdapter
public GSONAdapter()
-
-
Method Details
-
deserialize
public GUIComponent deserialize(com.google.gson.JsonElement jsonElement, Type type, com.google.gson.JsonDeserializationContext jsonDeserializationContext) throws com.google.gson.JsonParseException - Specified by:
deserialize
in interfacecom.google.gson.JsonDeserializer<GUIComponent>
- Throws:
com.google.gson.JsonParseException
-
serialize
public com.google.gson.JsonElement serialize(GUIComponent element, Type type, com.google.gson.JsonSerializationContext jsonSerializationContext) - Specified by:
serialize
in interfacecom.google.gson.JsonSerializer<GUIComponent>
-