toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (this.nameDe != null) {
json[r'name_de'] = this.nameDe;
} else {
json[r'name_de'] = null;
}
if (this.nameEn != null) {
json[r'name_en'] = this.nameEn;
} else {
json[r'name_en'] = null;
}
if (this.nameFr != null) {
json[r'name_fr'] = this.nameFr;
} else {
json[r'name_fr'] = null;
}
if (this.nameIt != null) {
json[r'name_it'] = this.nameIt;
} else {
json[r'name_it'] = null;
}
if (this.status != null) {
json[r'status'] = this.status;
} else {
json[r'status'] = null;
}
if (this.description != null) {
json[r'description'] = this.description;
} else {
json[r'description'] = null;
}
if (this.descriptionDe != null) {
json[r'description_de'] = this.descriptionDe;
} else {
json[r'description_de'] = null;
}
if (this.descriptionEn != null) {
json[r'description_en'] = this.descriptionEn;
} else {
json[r'description_en'] = null;
}
if (this.descriptionFr != null) {
json[r'description_fr'] = this.descriptionFr;
} else {
json[r'description_fr'] = null;
}
if (this.descriptionIt != null) {
json[r'description_it'] = this.descriptionIt;
} else {
json[r'description_it'] = null;
}
if (this.number != null) {
json[r'number'] = this.number;
} else {
json[r'number'] = null;
}
if (this.siteUrlDe != null) {
json[r'site_url_de'] = this.siteUrlDe;
} else {
json[r'site_url_de'] = null;
}
if (this.siteUrlEn != null) {
json[r'site_url_en'] = this.siteUrlEn;
} else {
json[r'site_url_en'] = null;
}
if (this.siteUrlFr != null) {
json[r'site_url_fr'] = this.siteUrlFr;
} else {
json[r'site_url_fr'] = null;
}
if (this.siteUrlIt != null) {
json[r'site_url_it'] = this.siteUrlIt;
} else {
json[r'site_url_it'] = null;
}
if (this.scaleable != null) {
json[r'scaleable'] = this.scaleable;
} else {
json[r'scaleable'] = null;
}
if (this.sku != null) {
json[r'sku'] = this.sku;
} else {
json[r'sku'] = null;
}
if (this.price != null) {
json[r'price'] = this.price;
} else {
json[r'price'] = null;
}
if (this.priceCurrency != null) {
json[r'price_currency'] = this.priceCurrency;
} else {
json[r'price_currency'] = null;
}
if (this.verticalPlacement != null) {
json[r'vertical_placement'] = this.verticalPlacement;
} else {
json[r'vertical_placement'] = null;
}
return json;
}