improvement: add trending user repo

This commit is contained in:
Rongjian Zhang
2020-01-02 13:56:50 +08:00
parent 12d542c4f3
commit 7689ac06c6
6 changed files with 57 additions and 52 deletions

View File

@@ -227,7 +227,7 @@ class GithubTrendingUser {
@JsonSerializable()
class GithubTrendingUserRepo {
String username;
String name;
String description;
GithubTrendingUserRepo();

View File

@@ -268,13 +268,13 @@ Map<String, dynamic> _$GithubTrendingUserToJson(GithubTrendingUser instance) =>
GithubTrendingUserRepo _$GithubTrendingUserRepoFromJson(
Map<String, dynamic> json) {
return GithubTrendingUserRepo()
..username = json['username'] as String
..name = json['name'] as String
..description = json['description'] as String;
}
Map<String, dynamic> _$GithubTrendingUserRepoToJson(
GithubTrendingUserRepo instance) =>
<String, dynamic>{
'username': instance.username,
'name': instance.name,
'description': instance.description,
};