Customer.fromJson constructor

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

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"] ?? "",
  );
}