InvoiceListModel.fromMap constructor

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

Implementation

factory InvoiceListModel.fromMap(Map<String, dynamic> map) {
  return InvoiceListModel(
    facets: Facets.fromMap(map['facets']),
    totalItems: map['totalItems'],
    items: List<InvoiceModel>.from(map['items']?.map((x) => InvoiceModel.fromMap(x))),
  );
}