copyWith method

TaskSubscriptionNotifications copyWith({
  1. List<String>? taskIds,
})

A copy with the given properties replaced; everything else, unknown keys included, is kept.

Implementation

TaskSubscriptionNotifications copyWith({
  List<String>? taskIds,
}) =>
    TaskSubscriptionNotifications.fromJson({
      ...toJson(),
      if (taskIds != null) 'taskIds': $encode(taskIds),
    });