fromMap static method

Implementation

static AccountPurchasePaymentsDataPaymentMethodApplication? fromMap(
    Object? body) {
  final source = readRecord(body);
  if (source == null) return null;
  return AccountPurchasePaymentsDataPaymentMethodApplication(
    amount: readText(source['amount']),
    paymentMethod:
        AccountPurchasePaymentsDataPaymentMethodApplicationPaymentMethod
            .fromMap(source['payment_method']),
    paymentProcessor:
        AccountPurchasePaymentsDataPaymentMethodApplicationPaymentProcessor
            .fromMap(source['payment_processor']),
    reference: readText(source['reference']),
  );
}