copyWithWrapped method
WebhookSubscriptionModel
copyWithWrapped({
- Wrapped<
String> ? id, - Wrapped<
String> ? callbackUrl, - Wrapped<
WebhookOperation> ? eventType, - Wrapped<
ExtApiV2DataType> ? dataType, - 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));
}