CoinCommunityData.fromJson constructor

CoinCommunityData.fromJson(
  1. Map<String, dynamic> json
)

Constructs a CoinCommunityData instance from a JSON map.

json is a map containing the community data.

Implementation

CoinCommunityData.fromJson(Map<String, dynamic> json)
    : this.facebookLikes = Convert.toIntN(json['facebook_likes']),
      this.twitterFollowers = Convert.toIntN(json['twitter_followers']),
      this.redditAveragePosts48h =
          Convert.toDoubleN(json['reddit_average_posts_48h']),
      this.redditAverageComments48h =
          Convert.toDoubleN(json['reddit_average_comments_48h']),
      this.redditSubscribers = Convert.toIntN(json['reddit_subscribers']),
      this.redditAccountsActive48h =
          Convert.toDoubleN(json['reddit_accounts_active_48h']),
      this.telegramChannelUserCount =
          Convert.toIntN(json['telegram_channel_user_count']);