toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final _json = <String, dynamic>{};
  if (road != null) {
    _json[r'road'] = road;
  }
  if (city != null) {
    _json[r'city'] = city;
  }
  if (region != null) {
    _json[r'region'] = region;
  }
  if (zipcode != null) {
    _json[r'zipcode'] = zipcode;
  }
  if (nation != null) {
    _json[r'nation'] = nation;
  }
  return _json;
}