copyWith method

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

Implementation

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