fromJson static method

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

Creates a object from a json

Implementation

static ShippingAddress fromJson(Map<String, dynamic> json) {
  return ShippingAddress(
    countryCode: json['country_code']!,
    state: json['state']!,
    city: json['city']!,
    streetLine1: json['street_line1']!,
    streetLine2: json['street_line2']!,
    postCode: json['post_code']!,
  );
}