OnInputLifecycle.fromJson constructor
Implementation
factory OnInputLifecycle.fromJson(Map<String, dynamic> json) {
return OnInputLifecycle(
events: (json['events'] as List?)
?.whereNotNull()
.map((e) => Event.fromJson(e as Map<String, dynamic>))
.toList(),
transitionEvents: (json['transitionEvents'] as List?)
?.whereNotNull()
.map((e) => TransitionEvent.fromJson(e as Map<String, dynamic>))
.toList(),
);
}