copyWith method
BlogPostSingle
copyWith({
- dynamic id,
- String? status,
- String? title,
- dynamic spaceId,
- String? authorId,
- DateTime? createdAt,
- Version? version,
- BodySingle? body,
- AbstractPageLinks? links,
Implementation
BlogPostSingle copyWith(
{dynamic id,
String? status,
String? title,
dynamic spaceId,
String? authorId,
DateTime? createdAt,
Version? version,
BodySingle? body,
AbstractPageLinks? links}) {
return BlogPostSingle(
id: id ?? this.id,
status: status ?? this.status,
title: title ?? this.title,
spaceId: spaceId ?? this.spaceId,
authorId: authorId ?? this.authorId,
createdAt: createdAt ?? this.createdAt,
version: version ?? this.version,
body: body ?? this.body,
links: links ?? this.links,
);
}