copyWith method

PageBulk copyWith({
  1. String? id,
  2. String? status,
  3. String? title,
  4. String? spaceId,
  5. String? parentId,
  6. String? parentType,
  7. int? position,
  8. String? authorId,
  9. DateTime? createdAt,
  10. Version? version,
  11. BodyBulk? body,
  12. AbstractPageLinks? links,
})

Implementation

PageBulk copyWith(
    {String? id,
    String? status,
    String? title,
    String? spaceId,
    String? parentId,
    String? parentType,
    int? position,
    String? authorId,
    DateTime? createdAt,
    Version? version,
    BodyBulk? body,
    AbstractPageLinks? links}) {
  return PageBulk(
    id: id ?? this.id,
    status: status ?? this.status,
    title: title ?? this.title,
    spaceId: spaceId ?? this.spaceId,
    parentId: parentId ?? this.parentId,
    parentType: parentType ?? this.parentType,
    position: position ?? this.position,
    authorId: authorId ?? this.authorId,
    createdAt: createdAt ?? this.createdAt,
    version: version ?? this.version,
    body: body ?? this.body,
    links: links ?? this.links,
  );
}