File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -59,8 +59,7 @@ class PullRequestInformation {
59
59
60
60
PullRequestInformation ([this .isCompletePullRequest = false ]);
61
61
62
- static PullRequestInformation fromJSON (Map <String , dynamic > input,
63
- [PullRequestInformation into]) {
62
+ static PullRequestInformation fromJSON (Map <String , dynamic > input, [PullRequestInformation into]) {
64
63
if (input == null ) return null ;
65
64
66
65
var pr = into != null ? into : PullRequestInformation ();
@@ -135,10 +134,7 @@ class PullRequest extends PullRequestInformation {
135
134
pr.additionsCount = input['additions' ];
136
135
pr.deletionsCount = input['deletions' ];
137
136
pr.changedFilesCount = input['changed_files' ];
138
- pr.labels = input['labels' ]
139
- ? .cast <Map <String , dynamic >>()
140
- ? .map <IssueLabel >(IssueLabel .fromJSON)
141
- ? .toList ();
137
+ pr.labels = input['labels' ]? .cast <Map <String , dynamic >>()? .map <IssueLabel >(IssueLabel .fromJSON)? .toList ();
142
138
return pr;
143
139
}
144
140
}
You can’t perform that action at this time.
0 commit comments