TreasurySharedResourceInitiatingPaymentMethodDetailsUsBankAccount.fromJson constructor

TreasurySharedResourceInitiatingPaymentMethodDetailsUsBankAccount.fromJson(
  1. Object? json
)

Implementation

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