Address.fromJson constructor

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

Parse from a json

Implementation

factory Address.fromJson(Map<String, dynamic> json) => Address(
      countryCode: json['country_code'],
      state: json['state'],
      city: json['city'],
      streetLine1: json['street_line1'],
      streetLine2: json['street_line2'],
      postalCode: json['postal_code'],
    );