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.nodeId,
|
|
this.avatarUrl,
|
|
this.gravatarId,
|
|
this.url,
|
|
this.htmlUrl,
|
|
this.followersUrl,
|
|
this.followingUrl,
|
|
this.gistsUrl,
|
|
this.starredUrl,
|
|
this.subscriptionsUrl,
|
|
this.organizationsUrl,
|
|
this.reposUrl,
|
|
this.eventsUrl,
|
|
this.receivedEventsUrl,
|
|
this.type,
|
|
this.siteAdmin,
|
|
this.name,
|
|
this.company,
|
|
this.blog,
|
|
this.location,
|
|
this.email,
|
|
this.starred,
|
|
this.bio,
|
|
this.publicRepos,
|
|
this.publicGists,
|
|
this.followers,
|
|
this.following,
|
|
this.createdAt,
|
|
this.updatedAt,
|
|
this.privateGists,
|
|
this.totalPrivateRepos,
|
|
this.ownedPrivateRepos,
|
|
this.diskUsage,
|
|
this.collaborators,
|
|
this.twoFactorAuthentication);
|
|
|
|
String login;
|
|
int id;
|
|
String nodeId;
|
|
String avatarUrl;
|
|
String gravatarId;
|
|
String url;
|
|
String htmlUrl;
|
|
String followersUrl;
|
|
String followingUrl;
|
|
String gistsUrl;
|
|
String starredUrl;
|
|
String subscriptionsUrl;
|
|
String organizationsUrl;
|
|
String reposUrl;
|
|
String eventsUrl;
|
|
String receivedEventsUrl;
|
|
String type;
|
|
bool siteAdmin;
|
|
String name;
|
|
String company;
|
|
String blog;
|
|
String location;
|
|
String email;
|
|
String starred;
|
|
String bio;
|
|
int publicRepos;
|
|
int publicGists;
|
|
int followers;
|
|
int following;
|
|
DateTime createdAt;
|
|
DateTime updatedAt;
|
|
int privateGists;
|
|
int totalPrivateRepos;
|
|
int ownedPrivateRepos;
|
|
int diskUsage;
|
|
int collaborators;
|
|
bool twoFactorAuthentication;
|
|
|
|
|
|
factory GithubUser.fromJson(Map<String, dynamic> json) => _$UserFromJson(json);
|
|
|
|
|
|
Map<String, dynamic> toJson() => _$UserToJson(this);
|
|
|
|
// 命名构造函数
|
|
GithubUser.empty();
|
|
|
|
}
|