Home > blockly > serialization > variables > VariableSerializer > load
serialization.variables.VariableSerializer.load() method
Deserializes the variable defined by the given state into the given workspace.
Signature:
load(state: IVariableState[], workspace: Workspace): void;
Parameters
| Parameter | Type | Description |
|---|---|---|
| state | IVariableState[] | The state of the variables to deserialize. |
| workspace | Workspace | The workspace to deserialize into. |
Returns:
void