fromMap static method

OrderInvoiceList? fromMap(
  1. Object? body
)

Implementation

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