CustomersModel.fromMap constructor
Implementation
factory CustomersModel.fromMap(Map<String, dynamic> map) {
return CustomersModel(
totalItems: map['total_items'] ?? map['totalItems'],
items: List<CustomerModel>.from(map['items']?.map((x) => CustomerModel.fromMap(x))),
);
}