toJson method
Implementation
Map<String, Object?> toJson() {
var blogPostId = this.blogPostId;
var pageId = this.pageId;
var parentCommentId = this.parentCommentId;
var body = this.body;
var inlineCommentProperties = this.inlineCommentProperties;
final json = <String, Object?>{};
if (blogPostId != null) {
json[r'blogPostId'] = blogPostId;
}
if (pageId != null) {
json[r'pageId'] = pageId;
}
if (parentCommentId != null) {
json[r'parentCommentId'] = parentCommentId;
}
if (body != null) {
json[r'body'] = body;
}
if (inlineCommentProperties != null) {
json[r'inlineCommentProperties'] = inlineCommentProperties.toJson();
}
return json;
}