Decode the JSON into an event.
JSON representation.
Target workspace for event.
The event represented by the JSON.
if an event type is not found in the registry.
Decode the JSON into an event.