Stay organized with collections
Save and categorize content based on your preferences.
blockly > serialization > procedures > saveProcedure
serialization.procedures.saveProcedure() function
Serializes the given IProcedureModel to JSON.
Signature:
export declare function saveProcedure(proc: IProcedureModel): State;
Parameters
Returns:
State
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 `saveProcedure` function within the `serialization.procedures` namespace converts a given procedure model (`IProcedureModel`) into a JSON representation for storage or transfer."],["This function accepts an `IProcedureModel` object as input, representing the procedure to be serialized."],["Upon serialization, the function returns a `State` object containing the JSON data of the procedure."]]],["The `saveProcedure` function serializes an `IProcedureModel` to JSON format. It takes one parameter, `proc`, which is of type `IProcedureModel`. The function's primary action is to convert the procedure model into a serializable `State` object. This allows for the persistence or transfer of procedure data in a JSON format. The function's signature is `export declare function saveProcedure(proc: IProcedureModel): State;`.\n"]]