blockly > Events > Abstract > toJson

Events.Abstract.toJson() method

Encode the event as JSON.

Signature:

toJson(): AbstractEventJson;

Returns:

AbstractEventJson

JSON representation.