copyWith method

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

Implementation

PageSingle copyWith(
    {dynamic id,
    String? status,
    String? title,
    dynamic spaceId,
    dynamic parentId,
    String? parentType,
    int? position,
    String? authorId,
    DateTime? createdAt,
    Version? version,
    BodySingle? body,
    AbstractPageLinks? links}) {
  return PageSingle(
    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,
  );
}