Shipping.fromJson constructor

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

Implementation

Shipping.fromJson(Map<String, dynamic> json) {
  firstName = json['first_name'] ?? "";
  lastName = json['last_name'] ?? "";
  company = json['company'] ?? "";
  address1 = json['address_1'] ?? "";
  address2 = json['address_2'] ?? "";
  city = json['city'] ?? "";
  state = json['state'] ?? "";
  postcode = json['postcode'] ?? "";
  country = json['country'] ?? "";
}