NoticeComment.from constructor

NoticeComment.from(
  1. Map<String, dynamic> data
)

Implementation

NoticeComment.from(Map<String, dynamic> data)
    : oId = data['oId'] ?? '',
      title = data['commentArticleTitle'] ?? '',
      author = data['commentAuthorName'] ?? '',
      thumbnailURL = data['commentAuthorThumbnailURL'] ?? '',
      type = ArticleType.values[data['commentArticleType'] ?? 0],
      perfect = (data['commentArticlePerfect'] ?? 0) == 1,
      content = data['commentContent'] ?? '',
      sharpURL = data['commentSharpURL'] ?? '',
      hasRead = data['hasRead'] ?? false,
      createTime = data['commentCreateTime'] ?? '';