Package dev.boze.api.config
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
-
Method Details
-
toJson
com.google.gson.JsonObject toJson()- Returns:
- The object as a JsonObject
-
fromJson
- Parameters:
object
- The JsonObject to deserialize- Returns:
- The deserialized object
-