toJson method

Map<String, dynamic> toJson()

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