copyWith method

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

Implementation

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