copyWithWrapped method

TransferCreateRequest copyWithWrapped({
  1. Wrapped<String?>? clientId,
  2. Wrapped<String?>? secret,
  3. Wrapped<String?>? idempotencyKey,
  4. Wrapped<String?>? accessToken,
  5. Wrapped<String?>? accountId,
  6. Wrapped<String?>? paymentProfileToken,
  7. Wrapped<String>? authorizationId,
  8. Wrapped<TransferType?>? type,
  9. Wrapped<TransferNetwork?>? network,
  10. Wrapped<String?>? amount,
  11. Wrapped<String>? description,
  12. Wrapped<ACHClass?>? achClass,
  13. Wrapped<TransferUserInRequestDeprecated?>? user,
  14. Wrapped<TransferMetadata?>? metadata,
  15. Wrapped<String?>? originationAccountId,
  16. Wrapped<String?>? isoCurrencyCode,
})

Implementation

TransferCreateRequest copyWithWrapped(
    {Wrapped<String?>? clientId,
    Wrapped<String?>? secret,
    Wrapped<String?>? idempotencyKey,
    Wrapped<String?>? accessToken,
    Wrapped<String?>? accountId,
    Wrapped<String?>? paymentProfileToken,
    Wrapped<String>? authorizationId,
    Wrapped<enums.TransferType?>? type,
    Wrapped<enums.TransferNetwork?>? network,
    Wrapped<String?>? amount,
    Wrapped<String>? description,
    Wrapped<enums.ACHClass?>? achClass,
    Wrapped<TransferUserInRequestDeprecated?>? user,
    Wrapped<TransferMetadata?>? metadata,
    Wrapped<String?>? originationAccountId,
    Wrapped<String?>? isoCurrencyCode}) {
  return TransferCreateRequest(
      clientId: (clientId != null ? clientId.value : this.clientId),
      secret: (secret != null ? secret.value : this.secret),
      idempotencyKey: (idempotencyKey != null
          ? idempotencyKey.value
          : this.idempotencyKey),
      accessToken:
          (accessToken != null ? accessToken.value : this.accessToken),
      accountId: (accountId != null ? accountId.value : this.accountId),
      paymentProfileToken: (paymentProfileToken != null
          ? paymentProfileToken.value
          : this.paymentProfileToken),
      authorizationId: (authorizationId != null
          ? authorizationId.value
          : this.authorizationId),
      type: (type != null ? type.value : this.type),
      network: (network != null ? network.value : this.network),
      amount: (amount != null ? amount.value : this.amount),
      description:
          (description != null ? description.value : this.description),
      achClass: (achClass != null ? achClass.value : this.achClass),
      user: (user != null ? user.value : this.user),
      metadata: (metadata != null ? metadata.value : this.metadata),
      originationAccountId: (originationAccountId != null
          ? originationAccountId.value
          : this.originationAccountId),
      isoCurrencyCode: (isoCurrencyCode != null
          ? isoCurrencyCode.value
          : this.isoCurrencyCode));
}