fromMap static method

AccountPurchaseRefunds? fromMap(
  1. Object? body
)

Implementation

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