copyWith method

Webhook copyWith({
  1. List<WebhookEvents>? events,
  2. int? expirationDate,
  3. List<String>? fieldIdsFilter,
  4. int? id,
  5. List<String>? issuePropertyKeysFilter,
  6. String? jqlFilter,
})

Implementation

Webhook copyWith(
    {List<WebhookEvents>? events,
    int? expirationDate,
    List<String>? fieldIdsFilter,
    int? id,
    List<String>? issuePropertyKeysFilter,
    String? jqlFilter}) {
  return Webhook(
    events: events ?? this.events,
    expirationDate: expirationDate ?? this.expirationDate,
    fieldIdsFilter: fieldIdsFilter ?? this.fieldIdsFilter,
    id: id ?? this.id,
    issuePropertyKeysFilter:
        issuePropertyKeysFilter ?? this.issuePropertyKeysFilter,
    jqlFilter: jqlFilter ?? this.jqlFilter,
  );
}