Function: fromJson()
function fromJson(json, workspace): Abstract;
Defined in: packages/blockly/core/events/utils.ts:400
Decode the JSON into an event.
Parameters
| Parameter | Type | Description |
|---|---|---|
json | any | JSON representation. |
workspace | Workspace | Target workspace for event. |
Returns
The event represented by the JSON.
Throws
if an event type is not found in the registry.