fromMap static method

BookingInvoiceList? fromMap(
  1. Object? body
)

Implementation

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