blockly > serialization > workspaceComments > save

serialization.workspaceComments.save() function

Serializes the state of the given comment to JSON.

Signature:

export declare function save(comment: WorkspaceComment, { addCoordinates, saveIds, }?: {
    addCoordinates?: boolean;
    saveIds?: boolean;
}): State;

Parameters

Parameter Type Description
comment WorkspaceComment
{ addCoordinates, saveIds, } { addCoordinates?: boolean; saveIds?: boolean; } (Optional)

Returns:

State