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