Skip to main content

Home > blockly > serialization > workspaces > save

serialization.workspaces.save() function

Returns the state of the workspace as a plain JavaScript object.

Signature:

export declare function save(workspace: Workspace): {
[key: string]: any;
};

Parameters

ParameterTypeDescription
workspaceWorkspaceThe workspace to serialize.

Returns:

{ [key: string]: any; }

The serialized state of the workspace.