fromMap static method

Implementation

static ReportsPurchaseTransactionsPurchasePaymentAndRefundOverviewPurchasePaymentAndRefundOverview?
    fromMap(Object? body) {
  final source = readRecord(body);
  if (source == null) return null;
  return ReportsPurchaseTransactionsPurchasePaymentAndRefundOverviewPurchasePaymentAndRefundOverview(
    purchasePayments: readList<
            ReportsPurchaseTransactionsPurchasePaymentAndRefundOverviewPurchasePaymentAndRefundOverviewPurchasePayment>(
        source['purchase_payments'],
        ReportsPurchaseTransactionsPurchasePaymentAndRefundOverviewPurchasePaymentAndRefundOverviewPurchasePayment
            .fromMap),
    purchaseRefunds: readList<
            ReportsPurchaseTransactionsPurchasePaymentAndRefundOverviewPurchasePaymentAndRefundOverviewPurchaseRefund>(
        source['purchase_refunds'],
        ReportsPurchaseTransactionsPurchasePaymentAndRefundOverviewPurchasePaymentAndRefundOverviewPurchaseRefund
            .fromMap),
  );
}