Address.fromJson constructor

Address.fromJson(
  1. Map<String, dynamic> json
)

Creates a new instance of Address from a JSON object.

The JSON object should contain keys that correspond to the properties of Address.

Implementation

factory Address.fromJson(Map<String, dynamic> json) {
  return Address(
    street: json['street'],
    city: json['city'],
    state: json['state'],
    countryOrRegion: json['countryOrRegion'],
    postalCode: json['postalCode'],
  );
}