toJson method

Map<String, dynamic> toJson()

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,
  };
}