BankAccountPayload constructor

BankAccountPayload({
  1. String? holderName,
  2. String? bankName,
  3. String? bankId,
  4. String? branchId,
  5. String? accountNr,
  6. String? accountType,
  7. String? holderTaxId,
  8. @Deprecated('This field is deprecated.') String? email,
  9. NationalBankAccountPayload? nationalBankAccountPayload,
  10. SameBankAccountPayload? sameBankAccontPayload,
  11. SpecificBanksAccountPayload? specificBanksAccountPayload,
  12. String? nationalAccountId,
  13. AchTransferAccountPayload? achTransferAccountPayload,
  14. DomesticWireTransferAccountPayload? domesticWireTransferAccountPayload,
})

Implementation

factory BankAccountPayload({
  $core.String? holderName,
  $core.String? bankName,
  $core.String? bankId,
  $core.String? branchId,
  $core.String? accountNr,
  $core.String? accountType,
  $core.String? holderTaxId,
@$core.Deprecated('This field is deprecated.')
  $core.String? email,
  NationalBankAccountPayload? nationalBankAccountPayload,
  SameBankAccountPayload? sameBankAccontPayload,
  SpecificBanksAccountPayload? specificBanksAccountPayload,
  $core.String? nationalAccountId,
  AchTransferAccountPayload? achTransferAccountPayload,
  DomesticWireTransferAccountPayload? domesticWireTransferAccountPayload,
}) {
  final $result = create();
  if (holderName != null) {
    $result.holderName = holderName;
  }
  if (bankName != null) {
    $result.bankName = bankName;
  }
  if (bankId != null) {
    $result.bankId = bankId;
  }
  if (branchId != null) {
    $result.branchId = branchId;
  }
  if (accountNr != null) {
    $result.accountNr = accountNr;
  }
  if (accountType != null) {
    $result.accountType = accountType;
  }
  if (holderTaxId != null) {
    $result.holderTaxId = holderTaxId;
  }
  if (email != null) {
    // ignore: deprecated_member_use_from_same_package
    $result.email = email;
  }
  if (nationalBankAccountPayload != null) {
    $result.nationalBankAccountPayload = nationalBankAccountPayload;
  }
  if (sameBankAccontPayload != null) {
    $result.sameBankAccontPayload = sameBankAccontPayload;
  }
  if (specificBanksAccountPayload != null) {
    $result.specificBanksAccountPayload = specificBanksAccountPayload;
  }
  if (nationalAccountId != null) {
    $result.nationalAccountId = nationalAccountId;
  }
  if (achTransferAccountPayload != null) {
    $result.achTransferAccountPayload = achTransferAccountPayload;
  }
  if (domesticWireTransferAccountPayload != null) {
    $result.domesticWireTransferAccountPayload = domesticWireTransferAccountPayload;
  }
  return $result;
}