fromMap static method

PaymentPaymentApplied? fromMap(
  1. Object? body
)

Implementation

static PaymentPaymentApplied? fromMap(Object? body) {
  final source = readRecord(body);
  if (source == null) return null;
  return PaymentPaymentApplied(
    amount: readText(source['amount']),
    gatewayResponse: readAny(source['gateway_response']),
    method: readText(source['method']),
    processor: readText(source['processor']),
    reference: readText(source['reference']),
  );
}