toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  var statuses = this.statuses;
  var taskId = this.taskId;
  var workflows = this.workflows;

  final json = <String, Object?>{};
  json[r'statuses'] = statuses.map((i) => i.toJson()).toList();
  if (taskId != null) {
    json[r'taskId'] = taskId;
  }
  json[r'workflows'] = workflows.map((i) => i.toJson()).toList();
  return json;
}