copyWith method

CreateWebhookSubscriptionRequest copyWith({
  1. String? callbackUrl,
  2. String? verificationToken,
  3. WebhookOperation? eventType,
  4. ExtApiV2DataType? dataType,
})

Implementation

CreateWebhookSubscriptionRequest copyWith(
    {String? callbackUrl,
    String? verificationToken,
    enums.WebhookOperation? eventType,
    enums.ExtApiV2DataType? dataType}) {
  return CreateWebhookSubscriptionRequest(
      callbackUrl: callbackUrl ?? this.callbackUrl,
      verificationToken: verificationToken ?? this.verificationToken,
      eventType: eventType ?? this.eventType,
      dataType: dataType ?? this.dataType);
}