// GENERATED CODE - DO NOT MODIFY BY HAND part of 'gogs.dart'; // ************************************************************************** // JsonSerializableGenerator // ************************************************************************** GogsUser _$GogsUserFromJson(Map json) => GogsUser() ..id = json['id'] as int? ..username = json['username'] as String? ..fullName = json['full_name'] as String? ..avatarUrl = json['avatar_url'] as String? ..email = json['email'] as String?; Map _$GogsUserToJson(GogsUser instance) => { 'id': instance.id, 'username': instance.username, 'full_name': instance.fullName, 'avatar_url': instance.avatarUrl, 'email': instance.email, }; GogsRepository _$GogsRepositoryFromJson(Map json) => GogsRepository() ..id = json['id'] as int? ..fullName = json['full_name'] as String? ..private = json['private'] as bool? ..owner = json['owner'] == null ? null : GogsUser.fromJson(json['owner'] as Map) ..htmlUrl = json['html_url'] as String? ..description = json['description'] as String? ..defaultBranch = json['default_branch'] as String? ..createdAt = json['created_at'] == null ? null : DateTime.parse(json['created_at'] as String) ..updatedAt = json['updated_at'] == null ? null : DateTime.parse(json['updated_at'] as String) ..starsCount = json['stars_count'] as int? ..forksCount = json['forks_count'] as int? ..website = json['website'] as String? ..watchersCount = json['watchers_count'] as int?; Map _$GogsRepositoryToJson(GogsRepository instance) => { 'id': instance.id, 'full_name': instance.fullName, 'private': instance.private, 'owner': instance.owner, 'html_url': instance.htmlUrl, 'description': instance.description, 'default_branch': instance.defaultBranch, 'created_at': instance.createdAt?.toIso8601String(), 'updated_at': instance.updatedAt?.toIso8601String(), 'stars_count': instance.starsCount, 'forks_count': instance.forksCount, 'website': instance.website, 'watchers_count': instance.watchersCount, }; GogsOrg _$GogsOrgFromJson(Map json) => GogsOrg() ..id = json['id'] as int? ..username = json['username'] as String? ..fullName = json['full_name'] as String? ..avatarUrl = json['avatar_url'] as String? ..description = json['description'] as String? ..location = json['location'] as String? ..website = json['website'] as String?; Map _$GogsOrgToJson(GogsOrg instance) => { 'id': instance.id, 'username': instance.username, 'full_name': instance.fullName, 'avatar_url': instance.avatarUrl, 'description': instance.description, 'location': instance.location, 'website': instance.website, }; GogsTree _$GogsTreeFromJson(Map json) => GogsTree( type: json['type'] as String, name: json['name'] as String, ) ..path = json['path'] as String? ..size = json['size'] as int? ..downloadUrl = json['download_url'] as String?; Map _$GogsTreeToJson(GogsTree instance) => { 'type': instance.type, 'name': instance.name, 'path': instance.path, 'size': instance.size, 'download_url': instance.downloadUrl, }; GogsBlob _$GogsBlobFromJson(Map json) => GogsBlob( type: json['type'] as String, name: json['name'] as String, ) ..path = json['path'] as String? ..size = json['size'] as int? ..downloadUrl = json['download_url'] as String? ..content = json['content'] as String?; Map _$GogsBlobToJson(GogsBlob instance) => { 'type': instance.type, 'name': instance.name, 'path': instance.path, 'size': instance.size, 'download_url': instance.downloadUrl, 'content': instance.content, }; GogsBranch _$GogsBranchFromJson(Map json) => GogsBranch()..name = json['name'] as String?; Map _$GogsBranchToJson(GogsBranch instance) => { 'name': instance.name, }; GogsCommit _$GogsCommitFromJson(Map json) => GogsCommit() ..author = json['author'] == null ? null : GogsUser.fromJson(json['author'] as Map) ..commit = json['commit'] == null ? null : GogsCommitDetail.fromJson(json['commit'] as Map) ..sha = json['sha'] as String? ..htmlUrl = json['html_url'] as String?; Map _$GogsCommitToJson(GogsCommit instance) => { 'author': instance.author, 'commit': instance.commit, 'sha': instance.sha, 'html_url': instance.htmlUrl, }; GogsCommitDetail _$GogsCommitDetailFromJson(Map json) => GogsCommitDetail() ..message = json['message'] as String? ..author = json['author'] == null ? null : GogsCommitAuthor.fromJson(json['author'] as Map) ..committer = json['committer'] == null ? null : GogsCommitAuthor.fromJson( json['committer'] as Map); Map _$GogsCommitDetailToJson(GogsCommitDetail instance) => { 'message': instance.message, 'author': instance.author, 'committer': instance.committer, }; GogsCommitAuthor _$GogsCommitAuthorFromJson(Map json) => GogsCommitAuthor() ..name = json['name'] as String? ..email = json['email'] as String? ..date = json['date'] == null ? null : DateTime.parse(json['date'] as String); Map _$GogsCommitAuthorToJson(GogsCommitAuthor instance) => { 'name': instance.name, 'email': instance.email, 'date': instance.date?.toIso8601String(), }; GogsIssue _$GogsIssueFromJson(Map json) => GogsIssue() ..number = json['number'] as int? ..state = json['state'] as String? ..title = json['title'] as String? ..body = json['body'] as String? ..user = json['user'] == null ? null : GogsUser.fromJson(json['user'] as Map) ..labels = (json['labels'] as List?) ?.map((e) => GogsLabel.fromJson(e as Map)) .toList() ..createdAt = json['created_at'] == null ? null : DateTime.parse(json['created_at'] as String) ..updatedAt = json['updated_at'] == null ? null : DateTime.parse(json['updated_at'] as String) ..comments = json['comments'] as int?; Map _$GogsIssueToJson(GogsIssue instance) => { 'number': instance.number, 'state': instance.state, 'title': instance.title, 'body': instance.body, 'user': instance.user, 'labels': instance.labels, 'created_at': instance.createdAt?.toIso8601String(), 'updated_at': instance.updatedAt?.toIso8601String(), 'comments': instance.comments, }; GogsLabel _$GogsLabelFromJson(Map json) => GogsLabel() ..name = json['name'] as String? ..color = json['color'] as String?; Map _$GogsLabelToJson(GogsLabel instance) => { 'name': instance.name, 'color': instance.color, };