NoticeFollow.from constructor
NoticeFollow.from(
- Map<String, dynamic> data
)
Implementation
NoticeFollow.from(Map<String, dynamic> data)
: oId = data['oId'] ?? '',
url = data['url'] ?? '',
dataType = data['dataType'] ?? 0,
title = data['articleTitle'] ?? '',
author = data['authorName'] ?? '',
content = data['content'] ?? '',
isComment = data['isComment'] ?? false,
thumbnailURL = data['thumbnailURL'] ?? '',
commentCnt = data['articleCommentCount'] ?? 0,
perfect = (data['articlePerfect'] ?? 0) == 1,
tagObjs = List.from(data['articleTagObjs'] ?? [])
.map((i) => ArticleTag.from(i))
.toList(),
tags = data['articleTags'] ?? '',
type = data['articleType'] ?? 0,
hasRead = data['hasRead'] ?? false,
createTime = data['createTime'] ?? '';