Skip to main content

Home > blockly > serialization > variables > VariableSerializer

serialization.variables.VariableSerializer class

Serializer for saving and loading variable state.

Signature:

export declare class VariableSerializer implements ISerializer 

Implements: ISerializer

Constructors

ConstructorModifiersDescription
(constructor)()Constructs a new instance of the VariableSerializer class

Properties

PropertyModifiersTypeDescription
prioritynumber

Methods

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