copyWith method

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

Implementation

CustomContentSingle copyWith(
    {dynamic id,
    String? type,
    String? status,
    String? title,
    dynamic spaceId,
    dynamic pageId,
    dynamic blogPostId,
    dynamic 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,
  );
}