toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'id'] = this.id;
json[r'name'] = this.name;
if (this.plan != null) {
json[r'plan'] = this.plan;
} else {
json[r'plan'] = null;
}
json[r'slug'] = this.slug;
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.contactAddress != null) {
json[r'contact_address'] = this.contactAddress;
} else {
json[r'contact_address'] = null;
}
if (this.billingAddress != null) {
json[r'billing_address'] = this.billingAddress;
} else {
json[r'billing_address'] = null;
}
if (this.paymentMethod != null) {
json[r'payment_method'] = this.paymentMethod;
} else {
json[r'payment_method'] = null;
}
json[r'models_count'] = this.modelsCount;
return json;
}