toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final Map<String, dynamic> data = new Map<String, dynamic>();
  if (this.city != null) data['city'] = this.city;
  if (this.country != null) data['country'] = this.country;
  if (this.line1 != null) data['line1'] = this.line1;
  if (this.line2 != null) data['line2'] = this.line2;
  if (this.name != null) data['name'] = this.name;
  if (this.postalCode != null) data['postalCode'] = this.postalCode;
  if (this.state != null) data['state'] = this.state;
  return data;
}