toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  var board = this.board;
  var custom = this.custom;
  var customerRequest = this.customerRequest;
  var issue = this.issue;
  var issues = this.issues;
  var project = this.project;
  var serviceDesk = this.serviceDesk;
  var sprint = this.sprint;

  final json = <String, Object?>{};
  if (board != null) {
    json[r'board'] = board;
  }
  json[r'custom'] = custom.map((i) => i.toJson()).toList();
  if (customerRequest != null) {
    json[r'customerRequest'] = customerRequest;
  }
  if (issue != null) {
    json[r'issue'] = issue.toJson();
  }
  if (issues != null) {
    json[r'issues'] = issues.toJson();
  }
  if (project != null) {
    json[r'project'] = project.toJson();
  }
  if (serviceDesk != null) {
    json[r'serviceDesk'] = serviceDesk;
  }
  if (sprint != null) {
    json[r'sprint'] = sprint;
  }
  return json;
}