copyWithWrapped method

TransferAuthorizationCreateRequest copyWithWrapped({
  1. Wrapped<String?>? clientId,
  2. Wrapped<String?>? secret,
  3. Wrapped<String?>? accessToken,
  4. Wrapped<String?>? accountId,
  5. Wrapped<String?>? paymentProfileToken,
  6. Wrapped<TransferType>? type,
  7. Wrapped<TransferNetwork>? network,
  8. Wrapped<String>? amount,
  9. Wrapped<ACHClass?>? achClass,
  10. Wrapped<TransferAuthorizationUserInRequest>? user,
  11. Wrapped<TransferAuthorizationDevice?>? device,
  12. Wrapped<String?>? originationAccountId,
  13. Wrapped<String?>? isoCurrencyCode,
  14. Wrapped<String?>? idempotencyKey,
  15. Wrapped<bool?>? userPresent,
  16. Wrapped<bool?>? withGuarantee,
  17. Wrapped<String?>? beaconSessionId,
  18. Wrapped<String?>? originatorClientId,
})

Implementation

TransferAuthorizationCreateRequest copyWithWrapped(
    {Wrapped<String?>? clientId,
    Wrapped<String?>? secret,
    Wrapped<String?>? accessToken,
    Wrapped<String?>? accountId,
    Wrapped<String?>? paymentProfileToken,
    Wrapped<enums.TransferType>? type,
    Wrapped<enums.TransferNetwork>? network,
    Wrapped<String>? amount,
    Wrapped<enums.ACHClass?>? achClass,
    Wrapped<TransferAuthorizationUserInRequest>? user,
    Wrapped<TransferAuthorizationDevice?>? device,
    Wrapped<String?>? originationAccountId,
    Wrapped<String?>? isoCurrencyCode,
    Wrapped<String?>? idempotencyKey,
    Wrapped<bool?>? userPresent,
    Wrapped<bool?>? withGuarantee,
    Wrapped<String?>? beaconSessionId,
    Wrapped<String?>? originatorClientId}) {
  return TransferAuthorizationCreateRequest(
      clientId: (clientId != null ? clientId.value : this.clientId),
      secret: (secret != null ? secret.value : this.secret),
      accessToken:
          (accessToken != null ? accessToken.value : this.accessToken),
      accountId: (accountId != null ? accountId.value : this.accountId),
      paymentProfileToken: (paymentProfileToken != null
          ? paymentProfileToken.value
          : this.paymentProfileToken),
      type: (type != null ? type.value : this.type),
      network: (network != null ? network.value : this.network),
      amount: (amount != null ? amount.value : this.amount),
      achClass: (achClass != null ? achClass.value : this.achClass),
      user: (user != null ? user.value : this.user),
      device: (device != null ? device.value : this.device),
      originationAccountId: (originationAccountId != null
          ? originationAccountId.value
          : this.originationAccountId),
      isoCurrencyCode: (isoCurrencyCode != null
          ? isoCurrencyCode.value
          : this.isoCurrencyCode),
      idempotencyKey: (idempotencyKey != null
          ? idempotencyKey.value
          : this.idempotencyKey),
      userPresent:
          (userPresent != null ? userPresent.value : this.userPresent),
      withGuarantee:
          (withGuarantee != null ? withGuarantee.value : this.withGuarantee),
      beaconSessionId: (beaconSessionId != null
          ? beaconSessionId.value
          : this.beaconSessionId),
      originatorClientId: (originatorClientId != null
          ? originatorClientId.value
          : this.originatorClientId));
}