copyWithWrapped method

TransferAuthorizationProposedTransfer copyWithWrapped({
  1. Wrapped<ACHClass?>? achClass,
  2. Wrapped<String?>? accountId,
  3. Wrapped<TransferType>? type,
  4. Wrapped<TransferUserInResponse>? user,
  5. Wrapped<String>? amount,
  6. Wrapped<String>? network,
  7. Wrapped<String>? originationAccountId,
  8. Wrapped<String>? isoCurrencyCode,
  9. Wrapped<String?>? originatorClientId,
})

Implementation

TransferAuthorizationProposedTransfer copyWithWrapped(
    {Wrapped<enums.ACHClass?>? achClass,
    Wrapped<String?>? accountId,
    Wrapped<enums.TransferType>? type,
    Wrapped<TransferUserInResponse>? user,
    Wrapped<String>? amount,
    Wrapped<String>? network,
    Wrapped<String>? originationAccountId,
    Wrapped<String>? isoCurrencyCode,
    Wrapped<String?>? originatorClientId}) {
  return TransferAuthorizationProposedTransfer(
      achClass: (achClass != null ? achClass.value : this.achClass),
      accountId: (accountId != null ? accountId.value : this.accountId),
      type: (type != null ? type.value : this.type),
      user: (user != null ? user.value : this.user),
      amount: (amount != null ? amount.value : this.amount),
      network: (network != null ? network.value : this.network),
      originationAccountId: (originationAccountId != null
          ? originationAccountId.value
          : this.originationAccountId),
      isoCurrencyCode: (isoCurrencyCode != null
          ? isoCurrencyCode.value
          : this.isoCurrencyCode),
      originatorClientId: (originatorClientId != null
          ? originatorClientId.value
          : this.originatorClientId));
}