toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
      'commentNice': isNice,
      'commentCreateTimeStr': createTimeStr,
      'commentAuthorId': authorId,
      'commentScore': score,
      'commentCreateTime': createTime,
      'commentAuthorURL': authorURL,
      'commentVote': vote.index,
      'commentRevisionCount': revisionCount,
      'timeAgo': timeAgo,
      'commentOriginalCommentId': replyId,
      'sysMetal': sysMetal.map((e) => e.toJson()).toList(),
      'commentGoodCnt': goodCnt,
      'commentVisible': visible ? 0 : 1,
      'commentOnArticleId': articleId,
      'rewardedCnt': rewardedCnt,
      'commentSharpURL': sharpURL,
      'commentAnonymous': isAnonymous,
      'commentReplyCnt': replyCnt,
      'oId': oId,
      'commentContent': content,
      'commentStatus': status.index,
      'commentAuthorName': author,
      'commentThankCnt': thankCnt,
      'commentBadCnt': badCnt,
      'rewarded': rewarded,
      'commentAuthorThumbnailURL': thumbnailURL,
      'commentAudioURL': audioURL,
      'commentQnAOffered': offered,
      'commenter': commenter.toJson(),
    };