toJson method
Implementation
Map<String, Object?> toJson() {
var color = this.color;
var descriptionI18nKey = this.descriptionI18nKey;
var formattedKey = this.formattedKey;
var icon = this.icon;
var key = this.key;
final json = <String, Object?>{};
if (color != null) {
json[r'color'] = color;
}
if (descriptionI18nKey != null) {
json[r'descriptionI18nKey'] = descriptionI18nKey;
}
if (formattedKey != null) {
json[r'formattedKey'] = formattedKey;
}
if (icon != null) {
json[r'icon'] = icon;
}
if (key != null) {
json[r'key'] = key;
}
return json;
}