toJson method
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,
};
}