1
0
mirror of https://github.com/git-touch/git-touch synced 2024-12-12 08:27:04 +01:00

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,8 +7,8 @@ part of 'model.dart';
// **************************************************************************
GithubTrendingRepository _$GithubTrendingRepositoryFromJson(
Map<String, dynamic> json) {
return GithubTrendingRepository()
Map<String, dynamic> json) =>
GithubTrendingRepository()
..author = json['author'] as String?
..name = json['name'] as String?
..avatar = json['avatar'] as String?
@ -20,10 +20,9 @@ GithubTrendingRepository _$GithubTrendingRepositoryFromJson(
..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>))
?.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()
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,8 +56,8 @@ Map<String, dynamic> _$GithubTrendingRepositoryBuiltByToJson(
};
GithubTrendingDeveloper _$GithubTrendingDeveloperFromJson(
Map<String, dynamic> json) {
return GithubTrendingDeveloper()
Map<String, dynamic> json) =>
GithubTrendingDeveloper()
..username = json['username'] as String?
..name = json['name'] as String?
..type = json['type'] as String?
@ -69,7 +67,6 @@ GithubTrendingDeveloper _$GithubTrendingDeveloperFromJson(
? 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()
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) =>