Skip to main content

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

ParameterTypeDescription
stateIVariableState[]The state of the variables to deserialize.
workspaceWorkspaceThe workspace to deserialize into.

Returns:

void