Skip to main content

Home > blockly > serialization > procedures > ProcedureSerializer

serialization.procedures.ProcedureSerializer class

Serializer for saving and loading procedure state.

Signature:

export declare class ProcedureSerializer<ProcedureModel extends IProcedureModel, ParameterModel extends IParameterModel> implements ISerializer 

Implements: ISerializer

Constructors

ConstructorModifiersDescription
(constructor)(procedureModelClass, parameterModelClass)Constructs the procedure serializer. Example usage: new ProcedureSerializer(MyProcedureModelClass, MyParameterModelClass)

Properties

PropertyModifiersTypeDescription
prioritynumber

Methods

MethodModifiersDescription
clear(workspace)Disposes of any procedure models that exist on the workspace.
load(state, workspace)Deserializes the procedures models defined by the given state into the workspace.
save(workspace)Serializes the procedure models of the given workspace.