toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'id'] = this.id;
json[r'name'] = this.name;
if (this.slug != null) {
json[r'slug'] = this.slug;
} else {
json[r'slug'] = null;
}
json[r'customer_name'] = this.customerName;
if (this.image != null) {
json[r'image'] = this.image;
} else {
json[r'image'] = null;
}
json[r'image_thumb'] = this.imageThumb;
json[r'image_preview'] = this.imagePreview;
if (this.website != null) {
json[r'website'] = this.website;
} else {
json[r'website'] = null;
}
if (this.description != null) {
json[r'description'] = this.description;
} else {
json[r'description'] = null;
}
if (this.gallery != null) {
json[r'gallery'] = this.gallery;
} else {
json[r'gallery'] = null;
}
if (this.translationsDe != null) {
json[r'translations_de'] = this.translationsDe;
} else {
json[r'translations_de'] = null;
}
if (this.translationsEn != null) {
json[r'translations_en'] = this.translationsEn;
} else {
json[r'translations_en'] = null;
}
if (this.translationsFr != null) {
json[r'translations_fr'] = this.translationsFr;
} else {
json[r'translations_fr'] = null;
}
if (this.translationsIt != null) {
json[r'translations_it'] = this.translationsIt;
} else {
json[r'translations_it'] = null;
}
if (this.backlinkUrls != null) {
json[r'backlink_urls'] = this.backlinkUrls;
} else {
json[r'backlink_urls'] = null;
}
json[r'orders'] = this.orders;
if (this.arbuttonConfig != null) {
json[r'arbutton_config'] = this.arbuttonConfig;
} else {
json[r'arbutton_config'] = null;
}
json[r'created'] = this.created.toUtc().toIso8601String();
json[r'modified'] = this.modified.toUtc().toIso8601String();
return json;
}