toJson method

Map<String, dynamic> toJson()

Converts the instance to a JSON map.

Implementation

Map<String, dynamic> toJson() {
  return {
    'street': street,
    'city': city,
    'district': district,
    'state': state,
    'country': country,
    'postalCode': postalCode,
  };
}