Package dev.boze.api.config
Interface Serializable<T>
- Type Parameters:
T- The type of the object
- All Known Implementing Classes:
Addon,AddonModule,BindOption,ModeOption,Option,SliderOption,ToggleOption
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
-