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 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 interface com.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 interface com.google.gson.JsonSerializer<GUIComponent>