forked from lxm_flutter/FlutterUnit
95 lines
1.9 KiB
Dart
95 lines
1.9 KiB
Dart
/// create by 张风捷特烈 on 2020/6/17
|
|
/// contact me by email 1981462002@qq.com
|
|
/// 说明:
|
|
|
|
part 'g/github_user.g.dart';
|
|
|
|
class GithubUser {
|
|
GithubUser(
|
|
this.login,
|
|
this.id,
|
|
this.node_id,
|
|
this.avatar_url,
|
|
this.gravatar_id,
|
|
this.url,
|
|
this.html_url,
|
|
this.followers_url,
|
|
this.following_url,
|
|
this.gists_url,
|
|
this.starred_url,
|
|
this.subscriptions_url,
|
|
this.organizations_url,
|
|
this.repos_url,
|
|
this.events_url,
|
|
this.received_events_url,
|
|
this.type,
|
|
this.site_admin,
|
|
this.name,
|
|
this.company,
|
|
this.blog,
|
|
this.location,
|
|
this.email,
|
|
this.starred,
|
|
this.bio,
|
|
this.public_repos,
|
|
this.public_gists,
|
|
this.followers,
|
|
this.following,
|
|
this.created_at,
|
|
this.updated_at,
|
|
this.private_gists,
|
|
this.total_private_repos,
|
|
this.owned_private_repos,
|
|
this.disk_usage,
|
|
this.collaborators,
|
|
this.two_factor_authentication);
|
|
|
|
String login;
|
|
int id;
|
|
String node_id;
|
|
String avatar_url;
|
|
String gravatar_id;
|
|
String url;
|
|
String html_url;
|
|
String followers_url;
|
|
String following_url;
|
|
String gists_url;
|
|
String starred_url;
|
|
String subscriptions_url;
|
|
String organizations_url;
|
|
String repos_url;
|
|
String events_url;
|
|
String received_events_url;
|
|
String type;
|
|
bool site_admin;
|
|
String name;
|
|
String company;
|
|
String blog;
|
|
String location;
|
|
String email;
|
|
String starred;
|
|
String bio;
|
|
int public_repos;
|
|
int public_gists;
|
|
int followers;
|
|
int following;
|
|
DateTime created_at;
|
|
DateTime updated_at;
|
|
int private_gists;
|
|
int total_private_repos;
|
|
int owned_private_repos;
|
|
int disk_usage;
|
|
int collaborators;
|
|
bool two_factor_authentication;
|
|
|
|
|
|
factory GithubUser.fromJson(Map<String, dynamic> json) => _$UserFromJson(json);
|
|
|
|
|
|
Map<String, dynamic> toJson() => _$UserToJson(this);
|
|
|
|
// 命名构造函数
|
|
GithubUser.empty();
|
|
|
|
}
|