fromMap static method

PurchasePaymentList? fromMap(
  1. Object? body
)

Implementation

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