copyWithWrapped method

TransferIntentCreate copyWithWrapped({
  1. Wrapped<String>? id,
  2. Wrapped<DateTime>? created,
  3. Wrapped<TransferIntentStatus>? status,
  4. Wrapped<String?>? accountId,
  5. Wrapped<String>? originationAccountId,
  6. Wrapped<String>? amount,
  7. Wrapped<TransferIntentCreateMode>? mode,
  8. Wrapped<ACHClass?>? achClass,
  9. Wrapped<TransferUserInResponse>? user,
  10. Wrapped<String>? description,
  11. Wrapped<TransferMetadata?>? metadata,
  12. Wrapped<String>? isoCurrencyCode,
  13. Wrapped<bool?>? requireGuarantee,
})

Implementation

TransferIntentCreate copyWithWrapped(
    {Wrapped<String>? id,
    Wrapped<DateTime>? created,
    Wrapped<enums.TransferIntentStatus>? status,
    Wrapped<String?>? accountId,
    Wrapped<String>? originationAccountId,
    Wrapped<String>? amount,
    Wrapped<enums.TransferIntentCreateMode>? mode,
    Wrapped<enums.ACHClass?>? achClass,
    Wrapped<TransferUserInResponse>? user,
    Wrapped<String>? description,
    Wrapped<TransferMetadata?>? metadata,
    Wrapped<String>? isoCurrencyCode,
    Wrapped<bool?>? requireGuarantee}) {
  return TransferIntentCreate(
      id: (id != null ? id.value : this.id),
      created: (created != null ? created.value : this.created),
      status: (status != null ? status.value : this.status),
      accountId: (accountId != null ? accountId.value : this.accountId),
      originationAccountId: (originationAccountId != null
          ? originationAccountId.value
          : this.originationAccountId),
      amount: (amount != null ? amount.value : this.amount),
      mode: (mode != null ? mode.value : this.mode),
      achClass: (achClass != null ? achClass.value : this.achClass),
      user: (user != null ? user.value : this.user),
      description:
          (description != null ? description.value : this.description),
      metadata: (metadata != null ? metadata.value : this.metadata),
      isoCurrencyCode: (isoCurrencyCode != null
          ? isoCurrencyCode.value
          : this.isoCurrencyCode),
      requireGuarantee: (requireGuarantee != null
          ? requireGuarantee.value
          : this.requireGuarantee));
}