toJson method

Map<String, dynamic> toJson()

Returns a JSON-compatible map that represents this Address.

This method can be used when storing this Address in a database or sending it over a network.

Implementation

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