Customer.fromJson constructor
Implementation
factory Customer.fromJson(Map<String, dynamic> json) {
return Customer(
name: json["name"] ?? "",
email: json["email"] ?? "",
phone: json["phone"] ?? "",
city: json["city"] ?? "",
address: json["address"] ?? "",
zip: json["zip"] ?? "",
ip: json["ip"] ?? "", lastName: '', country: '',
// redirect: json["redirect"] ?? "",
);
}