CustomersModel.fromMap constructor

CustomersModel.fromMap(
  1. Map<String, dynamic> map
)

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