CustomerList.fromJson constructor

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

Implementation

factory CustomerList.fromJson(Map<String, dynamic> json) => CustomerList(
  dealerCustomerListCount: json["DealerCustomerListCount"],
  dealerCustomerList: json["DealerCustomerList"] == null ? [] : List<Customer>.from(json["DealerCustomerList"]!.map((x) => Customer.fromJson(x))),
);