Stay organized with collections
Save and categorize content based on your preferences.
blockly > Procedures > IParameterModel > saveState
Procedures.IParameterModel.saveState() method
Serializes the state of the parameter to JSON.
Signature:
saveState(): ParameterState;
Returns:
ParameterState
JSON serializable state of the parameter.
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 `saveState()` method is part of the `Procedures.IParameterModel` interface in Blockly and is used to serialize the parameter's state into JSON format."],["This method takes no input and returns a `ParameterState` object representing the JSON-serializable state of the parameter."]]],["The `saveState()` method, part of the `Procedures.IParameterModel` interface, serializes a parameter's state into JSON. It takes no input parameters and returns a `ParameterState` object. This returned object is a JSON representation of the parameter's current state, enabling the parameter's state to be stored or transferred in a structured data format.\n"]]