copyWith method

ContentHistory copyWith({
  1. bool? latest,
  2. User? createdBy,
  3. User? ownedBy,
  4. User? lastOwnedBy,
  5. DateTime? createdDate,
  6. Version? lastUpdated,
  7. Version? previousVersion,
  8. ContentHistoryContributors? contributors,
  9. Version? nextVersion,
  10. ContentHistoryExpandable? expandable,
  11. GenericLinks? links,
})

Implementation

ContentHistory copyWith(
    {bool? latest,
    User? createdBy,
    User? ownedBy,
    User? lastOwnedBy,
    DateTime? createdDate,
    Version? lastUpdated,
    Version? previousVersion,
    ContentHistoryContributors? contributors,
    Version? nextVersion,
    ContentHistoryExpandable? expandable,
    GenericLinks? links}) {
  return ContentHistory(
    latest: latest ?? this.latest,
    createdBy: createdBy ?? this.createdBy,
    ownedBy: ownedBy ?? this.ownedBy,
    lastOwnedBy: lastOwnedBy ?? this.lastOwnedBy,
    createdDate: createdDate ?? this.createdDate,
    lastUpdated: lastUpdated ?? this.lastUpdated,
    previousVersion: previousVersion ?? this.previousVersion,
    contributors: contributors ?? this.contributors,
    nextVersion: nextVersion ?? this.nextVersion,
    expandable: expandable ?? this.expandable,
    links: links ?? this.links,
  );
}