copyWith method

CustomContentSingle copyWith({
  1. String? id,
  2. String? type,
  3. String? status,
  4. String? title,
  5. String? spaceId,
  6. String? pageId,
  7. String? blogPostId,
  8. String? customContentId,
  9. String? authorId,
  10. DateTime? createdAt,
  11. Version? version,
  12. CustomContentBodySingle? body,
  13. CustomContentLinks? links,
})

Implementation

CustomContentSingle copyWith(
    {String? id,
    String? type,
    String? status,
    String? title,
    String? spaceId,
    String? pageId,
    String? blogPostId,
    String? customContentId,
    String? authorId,
    DateTime? createdAt,
    Version? version,
    CustomContentBodySingle? body,
    CustomContentLinks? links}) {
  return CustomContentSingle(
    id: id ?? this.id,
    type: type ?? this.type,
    status: status ?? this.status,
    title: title ?? this.title,
    spaceId: spaceId ?? this.spaceId,
    pageId: pageId ?? this.pageId,
    blogPostId: blogPostId ?? this.blogPostId,
    customContentId: customContentId ?? this.customContentId,
    authorId: authorId ?? this.authorId,
    createdAt: createdAt ?? this.createdAt,
    version: version ?? this.version,
    body: body ?? this.body,
    links: links ?? this.links,
  );
}