ArticlePost.from constructor

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

Implementation

ArticlePost.from(Map<String, dynamic> data)
    : title = data['articleTitle'] ?? '',
      content = data['articleContent'] ?? '',
      tags = data['articleTags'] ?? '',
      commentable = data['articleCommentable'] ?? false,
      notifyFollowers = data['articleNotifyFollowers'] ?? false,
      type = data['articleType'] ?? 0,
      showInList = data['articleShowInList'] ?? 0,
      rewardContent = data['articleRewardContent'],
      rewardPoint = data['articleRewardPoint'],
      anonymous = data['articleAnonymous'],
      offerPoint = data['articleQnAOfferPoint'];