toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (this.id != null) {
json[r'id'] = this.id;
} else {
json[r'id'] = null;
}
if (this.name != null) {
json[r'name'] = this.name;
} else {
json[r'name'] = null;
}
if (this.countryCode != null) {
json[r'countryCode'] = this.countryCode;
} else {
json[r'countryCode'] = null;
}
if (this.category != null) {
json[r'category'] = this.category;
} else {
json[r'category'] = null;
}
if (this.logoUrl != null) {
json[r'logoUrl'] = this.logoUrl;
} else {
json[r'logoUrl'] = null;
}
if (this.description != null) {
json[r'description'] = this.description;
} else {
json[r'description'] = null;
}
json[r'offers'] = this.offers;
return json;
}