blockly > serialization > procedures > saveProcedure
تابع () serialization.procedures.saveProcedure
IProcedureModel داده شده را به JSON سریال می کند.
امضا:
export declare function saveProcedure(proc: IProcedureModel): State;
پارامترها
برمیگرداند:
ایالت
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-01-10 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-01-10 بهوقت ساعت هماهنگ جهانی."],[[["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"]]