Package dev.boze.api.option
Class ToggleOption
- All Implemented Interfaces:
Serializable<Boolean>
-
Field Summary
Fields inherited from class dev.boze.api.option.Option
description, name, owner
-
Constructor Summary
ConstructorsConstructorDescriptionToggleOption
(AddonModule owner, String name, String description) ToggleOption
(AddonModule owner, String name, String description, boolean value) -
Method Summary
-
Constructor Details
-
ToggleOption
-
ToggleOption
-
-
Method Details
-
getValue
-
setValue
-
reset
-
toJson
public com.google.gson.JsonObject toJson()- Returns:
- The object as a JsonObject
-
fromJson
- Parameters:
object
- The JsonObject to deserialize- Returns:
- The deserialized object
-