toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final source = this.source;
  final target = this.target;
  final condition = this.condition;
  final status = this.status;
  return {
    'source': source,
    'target': target,
    if (condition != null) 'condition': condition,
    if (status != null) 'status': status,
  };
}