toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.body != null) {
    json[r'body'] = this.body;
  } else {
    json[r'body'] = null;
  }
  if (this.content != null) {
    json[r'content'] = this.content;
  } else {
    json[r'content'] = null;
  }
  if (this.parentCommentId != null) {
    json[r'parentCommentId'] = this.parentCommentId;
  } else {
    json[r'parentCommentId'] = null;
  }
  if (this.blockId != null) {
    json[r'blockId'] = this.blockId;
  } else {
    json[r'blockId'] = null;
  }
  return json;
}