// GENERATED CODE - DO NOT MODIFY BY HAND part of 'gitee.dart'; // ************************************************************************** // JsonSerializableGenerator // ************************************************************************** GiteeUser _$GiteeUserFromJson(Map json) { return GiteeUser() ..login = json['login'] as String ..avatarUrl = json['avatar_url'] as String ..name = json['name'] as String ..htmlUrl = json['html_url'] as String ..bio = json['bio'] as String ..blog = json['blog'] as String ..publicRepos = json['public_repos'] as int ..followers = json['followers'] as int ..following = json['following'] as int ..stared = json['stared'] as int ..watched = json['watched'] as int ..createdAt = json['created_at'] == null ? null : DateTime.parse(json['created_at'] as String); } Map _$GiteeUserToJson(GiteeUser instance) => { 'login': instance.login, 'avatar_url': instance.avatarUrl, 'name': instance.name, 'html_url': instance.htmlUrl, 'bio': instance.bio, 'blog': instance.blog, 'public_repos': instance.publicRepos, 'followers': instance.followers, 'following': instance.following, 'stared': instance.stared, 'watched': instance.watched, 'created_at': instance.createdAt?.toIso8601String(), }; GiteeListUser _$GiteeListUserFromJson(Map json) { return GiteeListUser() ..login = json['login'] as String ..avatarUrl = json['avatar_url'] as String ..name = json['name'] as String ..htmlUrl = json['html_url'] as String; } Map _$GiteeListUserToJson(GiteeListUser instance) => { 'login': instance.login, 'avatar_url': instance.avatarUrl, 'name': instance.name, 'html_url': instance.htmlUrl, }; GiteeRepo _$GiteeRepoFromJson(Map json) { return GiteeRepo() ..namespace = json['namespace'] == null ? null : GiteeRepoNamespace.fromJson(json['namespace'] as Map) ..owner = json['owner'] == null ? null : GiteeRepoOwner.fromJson(json['owner'] as Map) ..path = json['path'] as String ..description = json['description'] as String ..private = json['private'] as bool ..public = json['public'] as bool ..internal = json['internal'] as bool ..fork = json['fork'] as bool ..forksCount = json['forks_count'] as int ..stargazersCount = json['stargazers_count'] as int ..watchersCount = json['watchers_count'] as int ..updatedAt = json['updated_at'] == null ? null : DateTime.parse(json['updated_at'] as String) ..license = json['license'] as String ..homepage = json['homepage'] as String ..openIssuesCount = json['open_issues_count'] as int ..pullRequestsEnabled = json['pull_requests_enabled'] as bool ..defaultBranch = json['default_branch'] as String; } Map _$GiteeRepoToJson(GiteeRepo instance) => { 'namespace': instance.namespace, 'owner': instance.owner, 'path': instance.path, 'description': instance.description, 'private': instance.private, 'public': instance.public, 'internal': instance.internal, 'fork': instance.fork, 'forks_count': instance.forksCount, 'stargazers_count': instance.stargazersCount, 'watchers_count': instance.watchersCount, 'updated_at': instance.updatedAt?.toIso8601String(), 'license': instance.license, 'homepage': instance.homepage, 'open_issues_count': instance.openIssuesCount, 'pull_requests_enabled': instance.pullRequestsEnabled, 'default_branch': instance.defaultBranch, }; GiteeRepoOwner _$GiteeRepoOwnerFromJson(Map json) { return GiteeRepoOwner() ..login = json['login'] as String ..avatarUrl = json['avatar_url'] as String; } Map _$GiteeRepoOwnerToJson(GiteeRepoOwner instance) => { 'login': instance.login, 'avatar_url': instance.avatarUrl, }; GiteeRepoNamespace _$GiteeRepoNamespaceFromJson(Map json) { return GiteeRepoNamespace()..path = json['path'] as String; } Map _$GiteeRepoNamespaceToJson(GiteeRepoNamespace instance) => { 'path': instance.path, }; GiteeCommit _$GiteeCommitFromJson(Map json) { return GiteeCommit() ..author = json['author'] == null ? null : GiteeUser.fromJson(json['author'] as Map) ..commit = json['commit'] == null ? null : GiteeCommitDetail.fromJson(json['commit'] as Map) ..sha = json['sha'] as String ..htmlUrl = json['html_url'] as String; } Map _$GiteeCommitToJson(GiteeCommit instance) => { 'author': instance.author, 'commit': instance.commit, 'sha': instance.sha, 'html_url': instance.htmlUrl, }; GiteeCommitDetail _$GiteeCommitDetailFromJson(Map json) { return GiteeCommitDetail() ..message = json['message'] as String ..author = json['author'] == null ? null : GiteeCommitAuthor.fromJson(json['author'] as Map) ..committer = json['committer'] == null ? null : GiteeCommitAuthor.fromJson(json['committer'] as Map); } Map _$GiteeCommitDetailToJson(GiteeCommitDetail instance) => { 'message': instance.message, 'author': instance.author, 'committer': instance.committer, }; GiteeCommitAuthor _$GiteeCommitAuthorFromJson(Map json) { return GiteeCommitAuthor() ..name = json['name'] as String ..email = json['email'] as String ..date = json['date'] == null ? null : DateTime.parse(json['date'] as String); } Map _$GiteeCommitAuthorToJson(GiteeCommitAuthor instance) => { 'name': instance.name, 'email': instance.email, 'date': instance.date?.toIso8601String(), }; GiteeTreeItem _$GiteeTreeItemFromJson(Map json) { return GiteeTreeItem() ..path = json['path'] as String ..type = json['type'] as String ..sha = json['sha'] as String ..size = json['size'] as int; } Map _$GiteeTreeItemToJson(GiteeTreeItem instance) => { 'path': instance.path, 'type': instance.type, 'sha': instance.sha, 'size': instance.size, }; GiteeBlob _$GiteeBlobFromJson(Map json) { return GiteeBlob()..content = json['content'] as String; } Map _$GiteeBlobToJson(GiteeBlob instance) => { 'content': instance.content, };