blockly > Flyout > serializeBlock
Flyout.serializeBlock() method
Serialize a block to JSON.
Signature:
protected serializeBlock(block: BlockSvg): blocks.State;
Parameters
Parameter | Type | Description |
---|---|---|
block | BlockSvg | The block to serialize. |
Returns:
A serialized representation of the block.