copyWithWrapped method

WebhookSubscriptionModel copyWithWrapped({
  1. Wrapped<String>? id,
  2. Wrapped<String>? callbackUrl,
  3. Wrapped<WebhookOperation>? eventType,
  4. Wrapped<ExtApiV2DataType>? dataType,
  5. Wrapped<DateTime>? expirationTime,
})

Implementation

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