toJson method
Implementation
core.Map<core.String, core.dynamic> toJson() => {
      if (legacyCommentId != null) 'legacyCommentId': legacyCommentId!,
      if (legacyDiscussionId != null)
        'legacyDiscussionId': legacyDiscussionId!,
      if (linkToDiscussion != null) 'linkToDiscussion': linkToDiscussion!,
      if (parent != null) 'parent': parent!,
    };