Links.fromJson constructor

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

Implementation

factory Links.fromJson(Map<String, dynamic> json) => Links(
      homepage: List<String>.from(json["homepage"].map((x) => x)),
      blockchainSite:
          List<String>.from(json["blockchain_site"].map((x) => x)),
      officialForumUrl:
          List<String>.from(json["official_forum_url"].map((x) => x)),
      chatUrl: List<String>.from(json["chat_url"].map((x) => x)),
      announcementUrl:
          List<String>.from(json["announcement_url"].map((x) => x)),
      twitterScreenName: json["twitter_screen_name"],
      facebookUsername: json["facebook_username"],
      bitcointalkThreadIdentifier: json["bitcointalk_thread_identifier"],
      telegramChannelIdentifier: json["telegram_channel_identifier"],
      subredditUrl: json["subreddit_url"],
      reposUrl: ReposUrl.fromJson(json["repos_url"]),
    );