fix: trending user data

This commit is contained in:
Rongjian Zhang
2019-12-30 19:55:59 +08:00
parent 3be1a92ea2
commit 396fe550c4
3 changed files with 64 additions and 7 deletions

View File

@@ -211,3 +211,27 @@ class GithubTrendingItem {
factory GithubTrendingItem.fromJson(Map<String, dynamic> json) =>
_$GithubTrendingItemFromJson(json);
}
@JsonSerializable()
class GithubTrendingUser {
String username;
String name;
String avatar;
GithubTrendingUserRepo repo;
GithubTrendingUser();
factory GithubTrendingUser.fromJson(Map<String, dynamic> json) =>
_$GithubTrendingUserFromJson(json);
}
@JsonSerializable()
class GithubTrendingUserRepo {
String username;
String description;
GithubTrendingUserRepo();
factory GithubTrendingUserRepo.fromJson(Map<String, dynamic> json) =>
_$GithubTrendingUserRepoFromJson(json);
}