asSceneItemStateEvent method Null safety
- @Deprecated('will be reomved')
@Deprecated('will be reomved')
returns a SceneItemStateEvent object or an Exception if BaseEvent type can't be resolved.
Implementation
@Deprecated('will be reomved')
SceneItemStateEvent asSceneItemStateEvent() {
switch (updateType) {
case 'SceneItemVisibilityChanged':
case 'SceneItemLockChanged':
return SceneItemStateEvent.fromJson(rawEvent, updateType);
}
throw exception;
}