copyWithWrapped method

TransferRecurringCreateRequest copyWithWrapped({
  1. Wrapped<String>? clientId,
  2. Wrapped<String>? secret,
  3. Wrapped<String>? accessToken,
  4. Wrapped<String?>? idempotencyKey,
  5. Wrapped<String>? accountId,
  6. Wrapped<TransferType>? type,
  7. Wrapped<TransferNetwork>? network,
  8. Wrapped<ACHClass?>? achClass,
  9. Wrapped<String>? amount,
  10. Wrapped<bool?>? userPresent,
  11. Wrapped<String?>? isoCurrencyCode,
  12. Wrapped<String?>? testClockId,
  13. Wrapped<TransferRecurringSchedule>? schedule,
  14. Wrapped<TransferUserInRequest>? user,
  15. Wrapped<TransferDevice>? device,
})

Implementation

TransferRecurringCreateRequest copyWithWrapped(
    {Wrapped<String>? clientId,
    Wrapped<String>? secret,
    Wrapped<String>? accessToken,
    Wrapped<String?>? idempotencyKey,
    Wrapped<String>? accountId,
    Wrapped<enums.TransferType>? type,
    Wrapped<enums.TransferNetwork>? network,
    Wrapped<enums.ACHClass?>? achClass,
    Wrapped<String>? amount,
    Wrapped<bool?>? userPresent,
    Wrapped<String?>? isoCurrencyCode,
    Wrapped<String?>? testClockId,
    Wrapped<TransferRecurringSchedule>? schedule,
    Wrapped<TransferUserInRequest>? user,
    Wrapped<TransferDevice>? device}) {
  return TransferRecurringCreateRequest(
      clientId: (clientId != null ? clientId.value : this.clientId),
      secret: (secret != null ? secret.value : this.secret),
      accessToken:
          (accessToken != null ? accessToken.value : this.accessToken),
      idempotencyKey: (idempotencyKey != null
          ? idempotencyKey.value
          : this.idempotencyKey),
      accountId: (accountId != null ? accountId.value : this.accountId),
      type: (type != null ? type.value : this.type),
      network: (network != null ? network.value : this.network),
      achClass: (achClass != null ? achClass.value : this.achClass),
      amount: (amount != null ? amount.value : this.amount),
      userPresent:
          (userPresent != null ? userPresent.value : this.userPresent),
      isoCurrencyCode: (isoCurrencyCode != null
          ? isoCurrencyCode.value
          : this.isoCurrencyCode),
      testClockId:
          (testClockId != null ? testClockId.value : this.testClockId),
      schedule: (schedule != null ? schedule.value : this.schedule),
      user: (user != null ? user.value : this.user),
      device: (device != null ? device.value : this.device));
}