toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  var assignee = this.assignee;
  var assigneeType = this.assigneeType;
  var description = this.description;
  var id = this.id;
  var isAssigneeTypeValid = this.isAssigneeTypeValid;
  var lead = this.lead;
  var leadAccountId = this.leadAccountId;
  var leadUserName = this.leadUserName;
  var name = this.name;
  var project = this.project;
  var projectId = this.projectId;
  var realAssignee = this.realAssignee;
  var realAssigneeType = this.realAssigneeType;
  var self = this.self;

  final json = <String, Object?>{};
  if (assignee != null) {
    json[r'assignee'] = assignee.toJson();
  }
  if (assigneeType != null) {
    json[r'assigneeType'] = assigneeType.value;
  }
  if (description != null) {
    json[r'description'] = description;
  }
  if (id != null) {
    json[r'id'] = id;
  }
  json[r'isAssigneeTypeValid'] = isAssigneeTypeValid;
  if (lead != null) {
    json[r'lead'] = lead.toJson();
  }
  if (leadAccountId != null) {
    json[r'leadAccountId'] = leadAccountId;
  }
  if (leadUserName != null) {
    json[r'leadUserName'] = leadUserName;
  }
  if (name != null) {
    json[r'name'] = name;
  }
  if (project != null) {
    json[r'project'] = project;
  }
  if (projectId != null) {
    json[r'projectId'] = projectId;
  }
  if (realAssignee != null) {
    json[r'realAssignee'] = realAssignee.toJson();
  }
  if (realAssigneeType != null) {
    json[r'realAssigneeType'] = realAssigneeType.value;
  }
  if (self != null) {
    json[r'self'] = self;
  }
  return json;
}