Stay organized with collections Save and categorize content based on your preferences.

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

Parameter Type Description
workspace Workspace The workspace to serialize.

Returns:

{ [key: string]: any; }

The serialized state of the workspace.