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 | The state of the variables to deserialize. | |
workspace | The workspace to deserialize into. |
Returns:
void