chore: update generated files

This commit is contained in:
Rongjian Zhang 2022-10-17 00:32:36 +08:00
parent 51bd138951
commit ade30dec99
2 changed files with 48 additions and 45 deletions

15
.vscode/tasks.json vendored
View File

@ -3,27 +3,34 @@
"tasks": [
{
"label": "all",
"dependsOn": ["json", "github", "gitlab"]
"dependsOn": ["root", "gql_github", "gql_gitlab", "github_trending"]
},
{
"label": "json",
"label": "root",
"type": "dart",
"command": "dart",
"args": ["run", "build_runner", "watch"]
},
{
"label": "github",
"label": "gql_github",
"type": "dart",
"command": "dart",
"cwd": "packages/gql_github",
"args": ["run", "build_runner", "watch"]
},
{
"label": "gitlab",
"label": "gql_gitlab",
"type": "dart",
"command": "dart",
"cwd": "packages/gql_gitlab",
"args": ["run", "build_runner", "watch"]
},
{
"label": "github_trending",
"type": "dart",
"command": "dart",
"cwd": "packages/github_trending",
"args": ["run", "build_runner", "watch"]
}
]
}

View File

@ -7,23 +7,22 @@ part of 'model.dart';
// **************************************************************************
GithubTrendingRepository _$GithubTrendingRepositoryFromJson(
Map<String, dynamic> json) {
return GithubTrendingRepository()
..author = json['author'] as String?
..name = json['name'] as String?
..avatar = json['avatar'] as String?
..url = json['url'] as String?
..description = json['description'] as String?
..language = json['language'] as String?
..languageColor = json['languageColor'] as String?
..stars = json['stars'] as int?
..forks = json['forks'] as int?
..currentPeriodStars = json['currentPeriodStars'] as int?
..builtBy = (json['builtBy'] as List<dynamic>?)
?.map((e) =>
GithubTrendingRepositoryBuiltBy.fromJson(e as Map<String, dynamic>))
.toList();
}
Map<String, dynamic> json) =>
GithubTrendingRepository()
..author = json['author'] as String?
..name = json['name'] as String?
..avatar = json['avatar'] as String?
..url = json['url'] as String?
..description = json['description'] as String?
..language = json['language'] as String?
..languageColor = json['languageColor'] as String?
..stars = json['stars'] as int?
..forks = json['forks'] as int?
..currentPeriodStars = json['currentPeriodStars'] as int?
..builtBy = (json['builtBy'] as List<dynamic>?)
?.map((e) => GithubTrendingRepositoryBuiltBy.fromJson(
e as Map<String, dynamic>))
.toList();
Map<String, dynamic> _$GithubTrendingRepositoryToJson(
GithubTrendingRepository instance) =>
@ -42,12 +41,11 @@ Map<String, dynamic> _$GithubTrendingRepositoryToJson(
};
GithubTrendingRepositoryBuiltBy _$GithubTrendingRepositoryBuiltByFromJson(
Map<String, dynamic> json) {
return GithubTrendingRepositoryBuiltBy()
..href = json['href'] as String?
..avatar = json['avatar'] as String?
..username = json['username'] as String?;
}
Map<String, dynamic> json) =>
GithubTrendingRepositoryBuiltBy()
..href = json['href'] as String?
..avatar = json['avatar'] as String?
..username = json['username'] as String?;
Map<String, dynamic> _$GithubTrendingRepositoryBuiltByToJson(
GithubTrendingRepositoryBuiltBy instance) =>
@ -58,18 +56,17 @@ Map<String, dynamic> _$GithubTrendingRepositoryBuiltByToJson(
};
GithubTrendingDeveloper _$GithubTrendingDeveloperFromJson(
Map<String, dynamic> json) {
return GithubTrendingDeveloper()
..username = json['username'] as String?
..name = json['name'] as String?
..type = json['type'] as String?
..url = json['url'] as String?
..avatar = json['avatar'] as String?
..repo = json['repo'] == null
? null
: GithubTrendingDeveloperRepository.fromJson(
json['repo'] as Map<String, dynamic>);
}
Map<String, dynamic> json) =>
GithubTrendingDeveloper()
..username = json['username'] as String?
..name = json['name'] as String?
..type = json['type'] as String?
..url = json['url'] as String?
..avatar = json['avatar'] as String?
..repo = json['repo'] == null
? null
: GithubTrendingDeveloperRepository.fromJson(
json['repo'] as Map<String, dynamic>);
Map<String, dynamic> _$GithubTrendingDeveloperToJson(
GithubTrendingDeveloper instance) =>
@ -83,12 +80,11 @@ Map<String, dynamic> _$GithubTrendingDeveloperToJson(
};
GithubTrendingDeveloperRepository _$GithubTrendingDeveloperRepositoryFromJson(
Map<String, dynamic> json) {
return GithubTrendingDeveloperRepository()
..name = json['name'] as String?
..description = json['description'] as String?
..url = json['url'] as String?;
}
Map<String, dynamic> json) =>
GithubTrendingDeveloperRepository()
..name = json['name'] as String?
..description = json['description'] as String?
..url = json['url'] as String?;
Map<String, dynamic> _$GithubTrendingDeveloperRepositoryToJson(
GithubTrendingDeveloperRepository instance) =>