copyWith method

ContentUpdate copyWith({
  1. ContentUpdateVersion? version,
  2. String? title,
  3. String? type,
  4. ContentUpdateStatus? status,
  5. List<ContentUpdateAncestorsItem>? ancestors,
  6. ContentUpdateBody? body,
})

Implementation

ContentUpdate copyWith(
    {ContentUpdateVersion? version,
    String? title,
    String? type,
    ContentUpdateStatus? status,
    List<ContentUpdateAncestorsItem>? ancestors,
    ContentUpdateBody? body}) {
  return ContentUpdate(
    version: version ?? this.version,
    title: title ?? this.title,
    type: type ?? this.type,
    status: status ?? this.status,
    ancestors: ancestors ?? this.ancestors,
    body: body ?? this.body,
  );
}