copyWith method
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,
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,
);
}