toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final _json = <String, dynamic>{};
  if (city != null) {
    _json[r'city'] = city;
  }
  if (country != null) {
    _json[r'country'] = country;
  }
  if (line1 != null) {
    _json[r'line1'] = line1;
  }
  if (line2 != null) {
    _json[r'line2'] = line2;
  }
  if (postalCode != null) {
    _json[r'postal_code'] = postalCode;
  }
  if (state != null) {
    _json[r'state'] = state;
  }
  return _json;
}