copyWith method

FooterCommentModel copyWith({
  1. String? id,
  2. String? status,
  3. String? title,
  4. String? blogPostId,
  5. String? pageId,
  6. String? parentCommentId,
  7. Version? version,
  8. BodySingle? body,
  9. CommentLinks? links,
})

Implementation

FooterCommentModel copyWith(
    {String? id,
    String? status,
    String? title,
    String? blogPostId,
    String? pageId,
    String? parentCommentId,
    Version? version,
    BodySingle? body,
    CommentLinks? links}) {
  return FooterCommentModel(
    id: id ?? this.id,
    status: status ?? this.status,
    title: title ?? this.title,
    blogPostId: blogPostId ?? this.blogPostId,
    pageId: pageId ?? this.pageId,
    parentCommentId: parentCommentId ?? this.parentCommentId,
    version: version ?? this.version,
    body: body ?? this.body,
    links: links ?? this.links,
  );
}