toJson method
Implementation
@override
Map<String, dynamic> toJson() {
Map<String, dynamic> jsonObject = {};
if (name != null) {
jsonObject['name'] = name;
}
if (locale != null) {
jsonObject['locale'] = locale;
}
if (logo != null) {
jsonObject['logo'] = logo!.toJson();
}
if (description != null) {
jsonObject['description'] = description;
}
if (backgroundColor != null) {
jsonObject['background_color'];
}
if (textColor != null) {
jsonObject['text_color'] = textColor;
}
return jsonObject;
}