fromMap static method

PurchaseInvoiceList? fromMap(
  1. Object? body
)

Implementation

static PurchaseInvoiceList? fromMap(Object? body) {
  final source = readRecord(body);
  if (source == null) return null;
  return PurchaseInvoiceList(
    data: readList<PurchaseInvoice>(source['data'], PurchaseInvoice.fromMap),
    object: readText(source['object']),
    pagination: Pagination.fromMap(source['pagination']),
    url: readText(source['url']),
  );
}