toJson method
Implementation
Map<String, Object?> toJson() {
var expands = this.expands;
var links = this.links;
var description = this.description;
var fields = this.fields;
var groupIds = this.groupIds;
var helpText = this.helpText;
var icon = this.icon;
var id = this.id;
var issueTypeId = this.issueTypeId;
var name = this.name;
var portalId = this.portalId;
var practice = this.practice;
var serviceDeskId = this.serviceDeskId;
final json = <String, Object?>{};
json[r'_expands'] = expands;
if (links != null) {
json[r'_links'] = links.toJson();
}
if (description != null) {
json[r'description'] = description;
}
if (fields != null) {
json[r'fields'] = fields.toJson();
}
json[r'groupIds'] = groupIds;
if (helpText != null) {
json[r'helpText'] = helpText;
}
if (icon != null) {
json[r'icon'] = icon.toJson();
}
if (id != null) {
json[r'id'] = id;
}
if (issueTypeId != null) {
json[r'issueTypeId'] = issueTypeId;
}
if (name != null) {
json[r'name'] = name;
}
if (portalId != null) {
json[r'portalId'] = portalId;
}
if (practice != null) {
json[r'practice'] = practice;
}
if (serviceDeskId != null) {
json[r'serviceDeskId'] = serviceDeskId;
}
return json;
}