blockly > serialization > procedury > saveProcedure
Funkcja serialization.procedures.saveProcedure()
Serializuje podany IProcedureModel do formatu JSON.
Podpis:
export declare function saveProcedure(proc: IProcedureModel): State;
Parametry
Zwroty:
Stan
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2024-09-12 UTC.
[null,null,["Ostatnia aktualizacja: 2024-09-12 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"]]