copyWithWrapped method

TransferIntentCreateRequest copyWithWrapped({
  1. Wrapped<String?>? clientId,
  2. Wrapped<String?>? secret,
  3. Wrapped<String?>? accountId,
  4. Wrapped<TransferIntentCreateMode>? mode,
  5. Wrapped<String>? amount,
  6. Wrapped<String>? description,
  7. Wrapped<ACHClass?>? achClass,
  8. Wrapped<String?>? originationAccountId,
  9. Wrapped<TransferUserInRequest>? user,
  10. Wrapped<TransferMetadata?>? metadata,
  11. Wrapped<String?>? isoCurrencyCode,
  12. Wrapped<bool?>? requireGuarantee,
})

Implementation

TransferIntentCreateRequest copyWithWrapped(
    {Wrapped<String?>? clientId,
    Wrapped<String?>? secret,
    Wrapped<String?>? accountId,
    Wrapped<enums.TransferIntentCreateMode>? mode,
    Wrapped<String>? amount,
    Wrapped<String>? description,
    Wrapped<enums.ACHClass?>? achClass,
    Wrapped<String?>? originationAccountId,
    Wrapped<TransferUserInRequest>? user,
    Wrapped<TransferMetadata?>? metadata,
    Wrapped<String?>? isoCurrencyCode,
    Wrapped<bool?>? requireGuarantee}) {
  return TransferIntentCreateRequest(
      clientId: (clientId != null ? clientId.value : this.clientId),
      secret: (secret != null ? secret.value : this.secret),
      accountId: (accountId != null ? accountId.value : this.accountId),
      mode: (mode != null ? mode.value : this.mode),
      amount: (amount != null ? amount.value : this.amount),
      description:
          (description != null ? description.value : this.description),
      achClass: (achClass != null ? achClass.value : this.achClass),
      originationAccountId: (originationAccountId != null
          ? originationAccountId.value
          : this.originationAccountId),
      user: (user != null ? user.value : this.user),
      metadata: (metadata != null ? metadata.value : this.metadata),
      isoCurrencyCode: (isoCurrencyCode != null
          ? isoCurrencyCode.value
          : this.isoCurrencyCode),
      requireGuarantee: (requireGuarantee != null
          ? requireGuarantee.value
          : this.requireGuarantee));
}