asSceneItemEvent method Null safety
returns a SceneItemEvent object or an Exception if BaseEvent type can't be resolved.
Implementation
@deprecated
SceneItemEvent asSceneItemEvent() {
switch (updateType) {
case 'SceneItemAdded':
case 'SceneItemRemoved':
case 'SceneItemSelected':
case 'SceneItemDeselected':
return SceneItemEvent.fromJson(rawEvent, updateType);
}
throw exception;
}