Methods
apply(app, data)
Load an application state from JSON.
Parameters:
Name | Type | Description |
---|---|---|
app | App | The app to apply the state to. |
data | object | The state data. |
- Source
fromJSON(json) → {object}
Load an application state from JSON.
Parameters:
Name | Type | Description |
---|---|---|
json | string | The state as a JSON string. |
- Source
Returns:
The state object.
- Type:
- object
toJSON(app) → {string}
Save the application state as JSON.
Parameters:
Name | Type | Description |
---|---|---|
app | App | The associated application. |
- Source
Returns:
The state as a JSON string.
- Type:
- string