copyWith method

RelatedTaskMetadata copyWith({
  1. String? taskId,
})

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

Implementation

RelatedTaskMetadata copyWith({
  String? taskId,
}) =>
    RelatedTaskMetadata.fromJson({
      ...toJson(),
      if (taskId != null) 'taskId': $encode(taskId),
    });