copyWith method

BlogPostSingle copyWith({
  1. String? id,
  2. String? status,
  3. String? title,
  4. String? spaceId,
  5. String? authorId,
  6. DateTime? createdAt,
  7. Version? version,
  8. BodySingle? body,
  9. AbstractPageLinks? links,
})

Implementation

BlogPostSingle copyWith(
    {String? id,
    String? status,
    String? title,
    String? 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,
  );
}