copyWithWrapped method

DepositSwitchTargetAccount copyWithWrapped({
  1. Wrapped<String>? accountNumber,
  2. Wrapped<String>? routingNumber,
  3. Wrapped<String>? accountName,
  4. Wrapped<DepositSwitchTargetAccountAccountSubtype>? accountSubtype,
})

Implementation

DepositSwitchTargetAccount copyWithWrapped(
    {Wrapped<String>? accountNumber,
    Wrapped<String>? routingNumber,
    Wrapped<String>? accountName,
    Wrapped<enums.DepositSwitchTargetAccountAccountSubtype>?
        accountSubtype}) {
  return DepositSwitchTargetAccount(
      accountNumber:
          (accountNumber != null ? accountNumber.value : this.accountNumber),
      routingNumber:
          (routingNumber != null ? routingNumber.value : this.routingNumber),
      accountName:
          (accountName != null ? accountName.value : this.accountName),
      accountSubtype: (accountSubtype != null
          ? accountSubtype.value
          : this.accountSubtype));
}