toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'name'] = this.name;
json[r'address'] = this.address;
json[r'city'] = this.city;
json[r'state'] = this.state;
json[r'zip'] = this.zip;
json[r'country'] = this.country;
if (this.currency != null) {
json[r'currency'] = this.currency;
} else {
json[r'currency'] = null;
}
if (this.email != null) {
json[r'email'] = this.email;
} else {
json[r'email'] = null;
}
return json;
}