Skip to main content

Home > blockly > ISerializable > saveState

ISerializable.saveState() method

Signature:

saveState(doFullSerialization: boolean): any;

Parameters

ParameterTypeDescription
doFullSerializationbooleanIf true, this signals that any backing data structures used by this ISerializable should also be serialized. This is used for copy-paste.

Returns:

any

a JSON serializable value that records the ISerializable's state.