copyWithWrapped method

TransferEventListRequest copyWithWrapped({
  1. Wrapped<String?>? clientId,
  2. Wrapped<String?>? secret,
  3. Wrapped<DateTime?>? startDate,
  4. Wrapped<DateTime?>? endDate,
  5. Wrapped<String?>? transferId,
  6. Wrapped<String?>? accountId,
  7. Wrapped<TransferEventListTransferType?>? transferType,
  8. Wrapped<List<TransferEventType>?>? eventTypes,
  9. Wrapped<String?>? sweepId,
  10. Wrapped<int?>? count,
  11. Wrapped<int?>? offset,
  12. Wrapped<String?>? originationAccountId,
  13. Wrapped<String?>? originatorClientId,
})

Implementation

TransferEventListRequest copyWithWrapped(
    {Wrapped<String?>? clientId,
    Wrapped<String?>? secret,
    Wrapped<DateTime?>? startDate,
    Wrapped<DateTime?>? endDate,
    Wrapped<String?>? transferId,
    Wrapped<String?>? accountId,
    Wrapped<enums.TransferEventListTransferType?>? transferType,
    Wrapped<List<enums.TransferEventType>?>? eventTypes,
    Wrapped<String?>? sweepId,
    Wrapped<int?>? count,
    Wrapped<int?>? offset,
    Wrapped<String?>? originationAccountId,
    Wrapped<String?>? originatorClientId}) {
  return TransferEventListRequest(
      clientId: (clientId != null ? clientId.value : this.clientId),
      secret: (secret != null ? secret.value : this.secret),
      startDate: (startDate != null ? startDate.value : this.startDate),
      endDate: (endDate != null ? endDate.value : this.endDate),
      transferId: (transferId != null ? transferId.value : this.transferId),
      accountId: (accountId != null ? accountId.value : this.accountId),
      transferType:
          (transferType != null ? transferType.value : this.transferType),
      eventTypes: (eventTypes != null ? eventTypes.value : this.eventTypes),
      sweepId: (sweepId != null ? sweepId.value : this.sweepId),
      count: (count != null ? count.value : this.count),
      offset: (offset != null ? offset.value : this.offset),
      originationAccountId: (originationAccountId != null
          ? originationAccountId.value
          : this.originationAccountId),
      originatorClientId: (originatorClientId != null
          ? originatorClientId.value
          : this.originatorClientId));
}