@@ -11,14 +11,14 @@ class ContributorStatistics {
11
11
/// Weekly Statistics
12
12
List <ContributorWeekStatistics > weeks;
13
13
14
- static ContributorStatistics fromJSON (input) {
14
+ static ContributorStatistics fromJSON (Map < String , dynamic > input) {
15
15
if (input == null ) return null ;
16
16
17
17
return new ContributorStatistics ()
18
18
..author = User .fromJSON (input['author' ])
19
19
..total = input['total' ]
20
- ..weeks =
21
- input[ 'weeks' ] .map ((it) => ContributorWeekStatistics .fromJSON (it));
20
+ ..weeks = (input[ 'weeks' ] as List < Map < String , dynamic >>)
21
+ .map ((it) => ContributorWeekStatistics .fromJSON (it));
22
22
}
23
23
}
24
24
@@ -37,7 +37,7 @@ class ContributorWeekStatistics {
37
37
/// Number of Commits
38
38
int commits;
39
39
40
- static ContributorWeekStatistics fromJSON (input) {
40
+ static ContributorWeekStatistics fromJSON (Map < String , dynamic > input) {
41
41
if (input == null ) return null ;
42
42
43
43
return new ContributorWeekStatistics ()
@@ -56,12 +56,12 @@ class ContributorParticipation {
56
56
/// Commit Counts for the Owner
57
57
List <int > owner;
58
58
59
- static ContributorParticipation fromJSON (input) {
59
+ static ContributorParticipation fromJSON (Map < String , dynamic > input) {
60
60
if (input == null ) return null ;
61
61
62
62
return new ContributorParticipation ()
63
- ..all = input['all' ]
64
- ..owner = input['owner' ];
63
+ ..all = input['all' ] as List < int >
64
+ ..owner = input['owner' ] as List < int > ;
65
65
}
66
66
}
67
67
@@ -76,11 +76,11 @@ class YearCommitCountWeek {
76
76
/// Timestamp for Beginning of Week
77
77
int timestamp;
78
78
79
- static YearCommitCountWeek fromJSON (input) {
79
+ static YearCommitCountWeek fromJSON (Map < String , dynamic > input) {
80
80
if (input == null ) return null ;
81
81
82
82
var c = new YearCommitCountWeek ();
83
- c.days = input["days" ];
83
+ c.days = input["days" ] as List < int > ;
84
84
c.total = input["total" ];
85
85
c.timestamp = input["week" ];
86
86
return c;
@@ -98,7 +98,7 @@ class WeeklyChangesCount {
98
98
/// Number of Deletions
99
99
int deletions;
100
100
101
- static WeeklyChangesCount fromJSON (input) {
101
+ static WeeklyChangesCount fromJSON (Map < String , dynamic > input) {
102
102
if (input == null ) return null ;
103
103
var c = new WeeklyChangesCount ();
104
104
c.timestamp = input[0 ];
@@ -119,7 +119,7 @@ class PunchcardEntry {
119
119
/// Number of Commits
120
120
int commits;
121
121
122
- static PunchcardEntry fromJSON (input) {
122
+ static PunchcardEntry fromJSON (Map < String , dynamic > input) {
123
123
if (input == null ) return null ;
124
124
var c = new PunchcardEntry ();
125
125
c.weekday = input[0 ];
0 commit comments