copyWithWrapped method

CreateWebhookSubscriptionRequest copyWithWrapped({
  1. Wrapped<String>? callbackUrl,
  2. Wrapped<String>? verificationToken,
  3. Wrapped<WebhookOperation>? eventType,
  4. Wrapped<ExtApiV2DataType>? dataType,
})

Implementation

CreateWebhookSubscriptionRequest copyWithWrapped(
    {Wrapped<String>? callbackUrl,
    Wrapped<String>? verificationToken,
    Wrapped<enums.WebhookOperation>? eventType,
    Wrapped<enums.ExtApiV2DataType>? dataType}) {
  return CreateWebhookSubscriptionRequest(
      callbackUrl:
          (callbackUrl != null ? callbackUrl.value : this.callbackUrl),
      verificationToken: (verificationToken != null
          ? verificationToken.value
          : this.verificationToken),
      eventType: (eventType != null ? eventType.value : this.eventType),
      dataType: (dataType != null ? dataType.value : this.dataType));
}