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