toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (this.subject != null) {
json[r'subject'] = this.subject;
} else {
json[r'subject'] = null;
}
if (this.description != null) {
json[r'description'] = this.description;
} else {
json[r'description'] = null;
}
if (this.ticketPriority != null) {
json[r'ticketPriority'] = this.ticketPriority;
} else {
json[r'ticketPriority'] = null;
}
if (this.dueDate != null) {
json[r'dueDate'] = _dateFormatter.format(this.dueDate!.toUtc());
} else {
json[r'dueDate'] = null;
}
if (this.categoryId != null) {
json[r'categoryId'] = this.categoryId;
} else {
json[r'categoryId'] = null;
}
if (this.areaId != null) {
json[r'areaId'] = this.areaId;
} else {
json[r'areaId'] = null;
}
json[r'relatedEntities'] = this.relatedEntities;
json[r'attachments'] = this.attachments;
json[r'actions'] = this.actions;
if (this.privateTicket != null) {
json[r'privateTicket'] = this.privateTicket;
} else {
json[r'privateTicket'] = null;
}
return json;
}