Home > blockly > VariableModel > load
VariableModel.load() method
Loads the persisted state into a new variable in the given workspace.
Signature:
static load(state: IVariableState, workspace: Workspace): void;
Parameters
| Parameter | Type | Description |
|---|---|---|
| state | IVariableState | The serialized state of a variable model from save(). |
| workspace | Workspace | The workspace to create the new variable in. |
Returns:
void