toJson method
Implementation
Map<String, Object?> toJson() {
var blogPostId = this.blogPostId;
var pageId = this.pageId;
var parentCommentId = this.parentCommentId;
var body = this.body;
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;
}
return json;
}