copyWith method

InlineCommentModel copyWith({
  1. dynamic id,
  2. String? status,
  3. String? title,
  4. dynamic blogPostId,
  5. dynamic pageId,
  6. dynamic parentCommentId,
  7. Version? version,
  8. BodySingle? body,
  9. String? resolutionLastModifierId,
  10. DateTime? resolutionLastModifiedAt,
  11. String? resolutionStatus,
  12. InlineCommentProperties? properties,
  13. CommentLinks? links,
})

Implementation

InlineCommentModel copyWith(
    {dynamic id,
    String? status,
    String? title,
    dynamic blogPostId,
    dynamic pageId,
    dynamic parentCommentId,
    Version? version,
    BodySingle? body,
    String? resolutionLastModifierId,
    DateTime? resolutionLastModifiedAt,
    String? resolutionStatus,
    InlineCommentProperties? properties,
    CommentLinks? links}) {
  return InlineCommentModel(
    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,
    resolutionLastModifierId:
        resolutionLastModifierId ?? this.resolutionLastModifierId,
    resolutionLastModifiedAt:
        resolutionLastModifiedAt ?? this.resolutionLastModifiedAt,
    resolutionStatus: resolutionStatus ?? this.resolutionStatus,
    properties: properties ?? this.properties,
    links: links ?? this.links,
  );
}