copyWith method

BlogPostCommentModel copyWith({
  1. String? id,
  2. String? status,
  3. String? title,
  4. String? blogPostId,
  5. Version? version,
  6. BodyBulk? body,
  7. CommentLinks? links,
})

Implementation

BlogPostCommentModel copyWith(
    {String? id,
    String? status,
    String? title,
    String? blogPostId,
    Version? version,
    BodyBulk? body,
    CommentLinks? links}) {
  return BlogPostCommentModel(
    id: id ?? this.id,
    status: status ?? this.status,
    title: title ?? this.title,
    blogPostId: blogPostId ?? this.blogPostId,
    version: version ?? this.version,
    body: body ?? this.body,
    links: links ?? this.links,
  );
}