copyWith method

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

Implementation

WebhookSubscriptionModel copyWith(
    {String? id,
    String? callbackUrl,
    enums.WebhookOperation? eventType,
    enums.ExtApiV2DataType? dataType,
    DateTime? expirationTime}) {
  return WebhookSubscriptionModel(
      id: id ?? this.id,
      callbackUrl: callbackUrl ?? this.callbackUrl,
      eventType: eventType ?? this.eventType,
      dataType: dataType ?? this.dataType,
      expirationTime: expirationTime ?? this.expirationTime);
}