toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'id'] = this.id;
json[r'type'] = this.type;
json[r'description'] = this.description;
if (this.displayLabel != null) {
json[r'displayLabel'] = this.displayLabel;
} else {
json[r'displayLabel'] = null;
}
if (this.displaySrc != null) {
json[r'displaySrc'] = this.displaySrc;
} else {
json[r'displaySrc'] = null;
}
if (this.backgroundColor != null) {
json[r'backgroundColor'] = this.backgroundColor;
} else {
json[r'backgroundColor'] = null;
}
if (this.borderColor != null) {
json[r'borderColor'] = this.borderColor;
} else {
json[r'borderColor'] = null;
}
if (this.textColor != null) {
json[r'textColor'] = this.textColor;
} else {
json[r'textColor'] = null;
}
if (this.cssClass != null) {
json[r'cssClass'] = this.cssClass;
} else {
json[r'cssClass'] = null;
}
return json;
}