CoinLinks.fromJson constructor

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

Implementation

CoinLinks.fromJson(Map<String, dynamic> json)
    : this.homepage = Convert.toListOfString(json['homepage']),
      this.blockchainSite = Convert.toListOfString(json['blockchain_site']),
      this.officialForumUrl =
          Convert.toListOfString(json['official_forum_url']),
      this.chatUrl = Convert.toListOfString(json['chat_url']),
      this.announcementUrl = Convert.toListOfString(json['announcement_url']),
      this.twitterScreenName = Convert.toStrN(json['twitter_screen_name']),
      this.facebookUsername = Convert.toStrN(json['facebook_username']),
      this.bitcointalkThreadIdentifier =
          Convert.toStrN(json['bitcointalk_thread_identifier']),
      this.telegramChannelIdentifier =
          Convert.toStrN(json['telegram_channel_identifier']),
      this.subredditUrl = Convert.toStrN(json['subreddit_url']),
      this.reposUrl = json.containsKey('repos_url')
          ? CoinReposUrl.fromJson(json['repos_url'])
          : null;