toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() => {
      'id': id!,
      'from': from,
      'to': to,
      if (trigger != null) 'trigger': trigger,
      if (label != null) 'label': label,
      if (condition != null) 'condition': condition,
      'source': source,
      'sourceRef': sourceRef.toJson(),
    };