PaymentMethodDetailsAchCreditTransfer.fromJson constructor

PaymentMethodDetailsAchCreditTransfer.fromJson(
  1. Object? json
)

Implementation

factory PaymentMethodDetailsAchCreditTransfer.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return PaymentMethodDetailsAchCreditTransfer(
    accountNumber: map['account_number'] == null
        ? null
        : (map['account_number'] as String),
    bankName: map['bank_name'] == null ? null : (map['bank_name'] as String),
    routingNumber: map['routing_number'] == null
        ? null
        : (map['routing_number'] as String),
    swiftCode:
        map['swift_code'] == null ? null : (map['swift_code'] as String),
  );
}