Customer.fromJson constructor
Customer.fromJson(
- Map<String, dynamic> json
)
Implementation
Customer.fromJson(Map<String, dynamic> json) {
gid = json["gid"];
email = json["email"];
name = json["name"];
phoneNumber = json["phoneNumber"];
taxId = json["taxId"];
taxStatus = json["taxStatus"];
taxValue = json["taxValue"];
billingAddress =json["billingAddress"] != null ? SPBillingAddress.fromJson(json["billingAddress"]) : null;
shippingAddress =json["shippingAddress"] != null ? SPShippingAddress.fromJson(json["shippingAddress"]) : null;
}