Interface Serializable<T>
- Type Parameters:
T- The type of the object
- All Known Implementing Classes:
Addon, AddonHudModule, AddonModule, BindOption, ClientModuleExtension, ColorOption, ModeOption, Option, PageOption, ParentOption, RangeSliderOption, 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
-