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.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-18 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-18 UTC."],[],["The `serialization.workspaces.save()` function captures the current state of a specified workspace. It accepts a `Workspace` object as input and outputs a plain JavaScript object representing the workspace's serialized state. This returned object contains key-value pairs (`{[key: string]: any;}`) that fully describe the workspace's condition at the moment the function is called.\n"]]