small dart2 fix
MODIFY
lib/src/common/repos_service.dart
lib/src/common/repos_service.dart
@@ -333,8 +333,8 @@ class RepositoriesService extends Service {
}
contents.file = GitHubFile.fromJSON(input as Map<String, dynamic>);
} else {
- contents.tree = (input as List<Map<String, dynamic>>)
- .map((Map<String, dynamic> it) => GitHubFile.fromJSON(it))
+ contents.tree = (input as List)
+ .map((it) => GitHubFile.fromJSON(it))
.toList();
}
return contents;

MODIFY
lib/src/common/util/pagination.dart
lib/src/common/util/pagination.dart
@@ -92,7 +92,7 @@ class PaginationHelper {
String body,
int statusCode: 200,
String preview}) {
- return jsonObjects(method, path,
+ return jsonObjects<S>(method, path,
pages: pages,
headers: headers,
params: params,

small dart2 fix (#107)