Event.fromJson constructor
Implementation
factory Event.fromJson(Map<String, dynamic> json) {
return Event(
eventName: json['eventName'] as String,
actions: (json['actions'] as List?)
?.whereNotNull()
.map((e) => Action.fromJson(e as Map<String, dynamic>))
.toList(),
condition: json['condition'] as String?,
);
}