Interface Serializable<T>

Type Parameters:
T - The type of the object
All Known Subinterfaces:
DrawColor
All Known Implementing Classes:
Addon, SettingBase, SettingBind, SettingColor, SettingMode, SettingSlider, SettingToggle, ToggleableModule

public interface Serializable<T>
Interface for serializable objects (settings, modules, etc.)
  • Method Summary

    Modifier and Type
    Method
    Description
    fromJson(com.google.gson.JsonObject object)
     
    com.google.gson.JsonObject
     
  • Method Details

    • toJson

      com.google.gson.JsonObject toJson()
      Returns:
      The object as a JsonObject
    • fromJson

      T fromJson(com.google.gson.JsonObject object)
      Parameters:
      object - The JsonObject to deserialize
      Returns:
      The deserialized object