Stay organized with collections
Save and categorize content based on your preferences.
blockly > serialization > ISerializer > save
serialization.ISerializer.save() method
Saves the state of the plugin or system.
Signature:
save(workspace: Workspace): object | null;
Parameters
Parameter |
Type |
Description |
workspace |
Workspace |
The workspace the system to serialize is associated with. |
Returns:
object | null
A JS object containing the system's state, or null if there is no state to record.
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 2025-05-16 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 2025-05-16 UTC."],[[["The `serialization.ISerializer.save()` method saves the state of a plugin or system associated with a specific workspace."],["It takes the workspace as input and returns a JavaScript object representing the system's state, or null if there's no state to save."]]],["The `serialization.ISerializer.save()` method saves the state of a plugin or system associated with a specific `Workspace`. It accepts a `Workspace` object as a parameter and returns either a JavaScript object representing the system's state or `null` if no state needs to be recorded. This method is used to capture the current configuration and status of a component within the workspace.\n"]]