SourceTypeAchCreditTransfer.fromJson constructor

SourceTypeAchCreditTransfer.fromJson(
  1. Object? json
)

Implementation

factory SourceTypeAchCreditTransfer.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return SourceTypeAchCreditTransfer(
    accountNumber: map['account_number'] == null
        ? null
        : (map['account_number'] as String),
    bankName: map['bank_name'] == null ? null : (map['bank_name'] as String),
    fingerprint:
        map['fingerprint'] == null ? null : (map['fingerprint'] as String),
    refundAccountHolderName: map['refund_account_holder_name'] == null
        ? null
        : (map['refund_account_holder_name'] as String),
    refundAccountHolderType: map['refund_account_holder_type'] == null
        ? null
        : (map['refund_account_holder_type'] as String),
    refundRoutingNumber: map['refund_routing_number'] == null
        ? null
        : (map['refund_routing_number'] as String),
    routingNumber: map['routing_number'] == null
        ? null
        : (map['routing_number'] as String),
    swiftCode:
        map['swift_code'] == null ? null : (map['swift_code'] as String),
  );
}