toJson method
Implementation
Map<String, Object?> toJson() {
var expands = this.expands;
var links = this.links;
var actions = this.actions;
var attachments = this.attachments;
var comments = this.comments;
var createdDate = this.createdDate;
var currentStatus = this.currentStatus;
var issueId = this.issueId;
var issueKey = this.issueKey;
var participants = this.participants;
var reporter = this.reporter;
var requestFieldValues = this.requestFieldValues;
var requestType = this.requestType;
var requestTypeId = this.requestTypeId;
var serviceDesk = this.serviceDesk;
var serviceDeskId = this.serviceDeskId;
var sla = this.sla;
var status = this.status;
final json = <String, Object?>{};
json[r'_expands'] = expands;
if (links != null) {
json[r'_links'] = links.toJson();
}
if (actions != null) {
json[r'actions'] = actions.toJson();
}
if (attachments != null) {
json[r'attachments'] = attachments.toJson();
}
if (comments != null) {
json[r'comments'] = comments.toJson();
}
if (createdDate != null) {
json[r'createdDate'] = createdDate.toJson();
}
if (currentStatus != null) {
json[r'currentStatus'] = currentStatus.toJson();
}
if (issueId != null) {
json[r'issueId'] = issueId;
}
if (issueKey != null) {
json[r'issueKey'] = issueKey;
}
if (participants != null) {
json[r'participants'] = participants.toJson();
}
if (reporter != null) {
json[r'reporter'] = reporter.toJson();
}
json[r'requestFieldValues'] =
requestFieldValues.map((i) => i.toJson()).toList();
if (requestType != null) {
json[r'requestType'] = requestType.toJson();
}
if (requestTypeId != null) {
json[r'requestTypeId'] = requestTypeId;
}
if (serviceDesk != null) {
json[r'serviceDesk'] = serviceDesk.toJson();
}
if (serviceDeskId != null) {
json[r'serviceDeskId'] = serviceDeskId;
}
if (sla != null) {
json[r'sla'] = sla.toJson();
}
if (status != null) {
json[r'status'] = status.toJson();
}
return json;
}