toJson method
Implementation
Map<String, Object?> toJson() {
var description = this.description;
var iconUrl = this.iconUrl;
var id = this.id;
var isDefault = this.isDefault;
var name = this.name;
var self = this.self;
var statusColor = this.statusColor;
final json = <String, Object?>{};
if (description != null) {
json[r'description'] = description;
}
if (iconUrl != null) {
json[r'iconUrl'] = iconUrl;
}
if (id != null) {
json[r'id'] = id;
}
json[r'isDefault'] = isDefault;
if (name != null) {
json[r'name'] = name;
}
if (self != null) {
json[r'self'] = self;
}
if (statusColor != null) {
json[r'statusColor'] = statusColor;
}
return json;
}