blockly > ISerializable > loadState

ISerializable.loadState() method

Takes in a JSON serializable value and sets the ISerializable's state based on that.

Signature:

loadState(state: any): void;

Parameters

Parameter Type Description
state any The state to apply to the ISerializable.

Returns:

void