toJson method
Implementation
Map<String, dynamic> toJson() {
final eventName = this.eventName;
final actions = this.actions;
final condition = this.condition;
return {
'eventName': eventName,
if (actions != null) 'actions': actions,
if (condition != null) 'condition': condition,
};
}