toMap method Null safety

  1. @override
Map<String, Object?> toMap()

Implementation

@override
Map<String, Object?> toMap() {
  return {
    'country': this.country,
    'province': this.province,
    'city': this.city,
    'district': this.district,
    'town': this.town,
    'streetName': this.streetName,
    'adCode': this.adCode,
    'countryCode': this.countryCode,
    'direction': this.direction,
    'distance': this.distance
  };
}