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