DeveloperData.fromJson constructor

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

Implementation

factory DeveloperData.fromJson(Map<String, dynamic> json) => DeveloperData(
      forks: json["forks"],
      stars: json["stars"],
      subscribers: json["subscribers"],
      totalIssues: json["total_issues"],
      closedIssues: json["closed_issues"],
      pullRequestsMerged: json["pull_requests_merged"],
      pullRequestContributors: json["pull_request_contributors"],
      codeAdditionsDeletions4Weeks: CodeAdditionsDeletions4Weeks.fromJson(
          json["code_additions_deletions_4_weeks"]),
      commitCount4Weeks: json["commit_count_4_weeks"],
      last4WeeksCommitActivitySeries: List<dynamic>.from(
          json["last_4_weeks_commit_activity_series"].map((x) => x)),
    );