copyWith method

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

Implementation

BlogPostBulk copyWith(
    {String? id,
    String? status,
    String? title,
    String? spaceId,
    String? authorId,
    DateTime? createdAt,
    Version? version,
    BodyBulk? body,
    AbstractPageLinks? links}) {
  return BlogPostBulk(
    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,
  );
}