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