// GENERATED CODE - DO NOT MODIFY BY HAND part of 'github.dart'; // ************************************************************************** // JsonSerializableGenerator // ************************************************************************** GithubEvent _$GithubEventFromJson(Map json) { return GithubEvent() ..actor = json['actor'] == null ? null : GithubEventUser.fromJson(json['actor'] as Map) ..type = json['type'] as String ..repo = json['repo'] == null ? null : GithubEventRepo.fromJson(json['repo'] as Map) ..createdAt = json['created_at'] == null ? null : DateTime.parse(json['created_at'] as String) ..payload = json['payload'] == null ? null : GithubEventPayload.fromJson(json['payload'] as Map); } Map _$GithubEventToJson(GithubEvent instance) => { 'actor': instance.actor, 'type': instance.type, 'repo': instance.repo, 'created_at': instance.createdAt?.toIso8601String(), 'payload': instance.payload, }; GithubEventUser _$GithubEventUserFromJson(Map json) { return GithubEventUser() ..login = json['login'] as String ..avatarUrl = json['avatar_url'] as String; } Map _$GithubEventUserToJson(GithubEventUser instance) => { 'login': instance.login, 'avatar_url': instance.avatarUrl, }; GithubEventRepo _$GithubEventRepoFromJson(Map json) { return GithubEventRepo()..name = json['name'] as String; } Map _$GithubEventRepoToJson(GithubEventRepo instance) => { 'name': instance.name, }; GithubEventPayload _$GithubEventPayloadFromJson(Map json) { return GithubEventPayload() ..issue = json['issue'] == null ? null : GithubEventIssue.fromJson(json['issue'] as Map) ..pullRequest = json['pull_request'] == null ? null : GithubEventIssue.fromJson( json['pull_request'] as Map) ..comment = json['comment'] == null ? null : GithubEventComment.fromJson(json['comment'] as Map) ..release = json['release'] == null ? null : GithubEventRelease.fromJson(json['release'] as Map) ..action = json['action'] as String ..ref = json['ref'] as String ..refType = json['ref_type'] as String ..before = json['before'] as String ..head = json['head'] as String ..commits = (json['commits'] as List) ?.map((e) => e == null ? null : GithubEventCommit.fromJson(e as Map)) ?.toList() ..forkee = json['forkee'] as Map ..pages = (json['pages'] as List) ?.map((e) => e == null ? null : GithubPagesItem.fromJson(e as Map)) ?.toList() ..securityAdvisory = json['security_advisory'] == null ? null : GithubSecurityItem.fromJson( json['security_advisory'] as Map) ..alert = json['alert'] == null ? null : GithubAlertItem.fromJson(json['alert'] as Map) ..project = json['project'] == null ? null : GithubProjectItem.fromJson(json['project'] as Map) ..projectColumn = json['project_column'] == null ? null : GithubProjectColumnItem.fromJson( json['project_column'] as Map) ..installation = json['installation'] == null ? null : GithubInstallationRepositoriesItem.fromJson( json['installation'] as Map) ..checkRun = json['check_run'] == null ? null : GithubCheckrunItem.fromJson(json['check_run'] as Map) ..checkSuite = json['check_suite'] == null ? null : GithubCheckSuiteItem.fromJson( json['check_suite'] as Map) ..contentReference = json['content_reference'] == null ? null : GithubContentReferenceItem.fromJson( json['content_reference'] as Map); } Map _$GithubEventPayloadToJson(GithubEventPayload instance) => { 'issue': instance.issue, 'pull_request': instance.pullRequest, 'comment': instance.comment, 'release': instance.release, 'action': instance.action, 'ref': instance.ref, 'ref_type': instance.refType, 'before': instance.before, 'head': instance.head, 'commits': instance.commits, 'forkee': instance.forkee, 'pages': instance.pages, 'security_advisory': instance.securityAdvisory, 'alert': instance.alert, 'project': instance.project, 'project_column': instance.projectColumn, 'installation': instance.installation, 'check_run': instance.checkRun, 'check_suite': instance.checkSuite, 'content_reference': instance.contentReference, }; GithubEventIssue _$GithubEventIssueFromJson(Map json) { return GithubEventIssue() ..title = json['title'] as String ..user = json['user'] == null ? null : GithubEventUser.fromJson(json['user'] as Map) ..number = json['number'] as int ..body = json['body'] as String ..pullRequest = json['pull_request'] ..state = json['state'] as String ..comments = json['comments'] as int ..merged = json['merged'] as bool ..createdAt = json['created_at'] == null ? null : DateTime.parse(json['created_at'] as String); } Map _$GithubEventIssueToJson(GithubEventIssue instance) => { 'title': instance.title, 'user': instance.user, 'number': instance.number, 'body': instance.body, 'pull_request': instance.pullRequest, 'state': instance.state, 'comments': instance.comments, 'merged': instance.merged, 'created_at': instance.createdAt?.toIso8601String(), }; GithubEventComment _$GithubEventCommentFromJson(Map json) { return GithubEventComment() ..body = json['body'] as String ..user = json['user'] == null ? null : GithubEventUser.fromJson(json['user'] as Map) ..commitId = json['commit_id'] as String ..htmlUrl = json['html_url'] as String; } Map _$GithubEventCommentToJson(GithubEventComment instance) => { 'body': instance.body, 'user': instance.user, 'commit_id': instance.commitId, 'html_url': instance.htmlUrl, }; GithubEventCommit _$GithubEventCommitFromJson(Map json) { return GithubEventCommit() ..sha = json['sha'] as String ..message = json['message'] as String; } Map _$GithubEventCommitToJson(GithubEventCommit instance) => { 'sha': instance.sha, 'message': instance.message, }; GithubEventRelease _$GithubEventReleaseFromJson(Map json) { return GithubEventRelease() ..htmlUrl = json['html_url'] as String ..tagName = json['tag_name'] as String; } Map _$GithubEventReleaseToJson(GithubEventRelease instance) => { 'html_url': instance.htmlUrl, 'tag_name': instance.tagName, }; GithubNotificationItem _$GithubNotificationItemFromJson( Map json) { return GithubNotificationItem() ..id = json['id'] as String ..subject = json['subject'] == null ? null : GithubNotificationItemSubject.fromJson( json['subject'] as Map) ..updatedAt = json['updated_at'] == null ? null : DateTime.parse(json['updated_at'] as String) ..repository = json['repository'] == null ? null : GithubNotificationItemRepo.fromJson( json['repository'] as Map) ..unread = json['unread'] as bool; } Map _$GithubNotificationItemToJson( GithubNotificationItem instance) => { 'id': instance.id, 'subject': instance.subject, 'updated_at': instance.updatedAt?.toIso8601String(), 'repository': instance.repository, 'unread': instance.unread, }; GithubNotificationItemSubject _$GithubNotificationItemSubjectFromJson( Map json) { return GithubNotificationItemSubject() ..title = json['title'] as String ..type = json['type'] as String ..url = json['url'] as String; } Map _$GithubNotificationItemSubjectToJson( GithubNotificationItemSubject instance) => { 'title': instance.title, 'type': instance.type, 'url': instance.url, }; GithubNotificationItemRepo _$GithubNotificationItemRepoFromJson( Map json) { return GithubNotificationItemRepo()..fullName = json['full_name'] as String; } Map _$GithubNotificationItemRepoToJson( GithubNotificationItemRepo instance) => { 'full_name': instance.fullName, }; GithubTreeItem _$GithubTreeItemFromJson(Map json) { return GithubTreeItem() ..name = json['name'] as String ..path = json['path'] as String ..size = json['size'] as int ..type = json['type'] as String ..downloadUrl = json['download_url'] as String ..content = json['content'] as String; } Map _$GithubTreeItemToJson(GithubTreeItem instance) => { 'name': instance.name, 'path': instance.path, 'size': instance.size, 'type': instance.type, 'download_url': instance.downloadUrl, 'content': instance.content, }; GithubPagesItem _$GithubPagesItemFromJson(Map json) { return GithubPagesItem() ..pageName = json['page_name'] as String ..title = json['title'] as String ..action = json['action'] as String; } Map _$GithubPagesItemToJson(GithubPagesItem instance) => { 'page_name': instance.pageName, 'title': instance.title, 'action': instance.action, }; GithubSecurityItem _$GithubSecurityItemFromJson(Map json) { return GithubSecurityItem() ..summary = json['summary'] as String ..description = json['description'] as String ..severity = json['severity'] as String; } Map _$GithubSecurityItemToJson(GithubSecurityItem instance) => { 'summary': instance.summary, 'description': instance.description, 'severity': instance.severity, }; GithubAlertItem _$GithubAlertItemFromJson(Map json) { return GithubAlertItem() ..affectedPackageName = json['affected_package_name'] as String ..affectedRange = json['affected_range'] as String; } Map _$GithubAlertItemToJson(GithubAlertItem instance) => { 'affected_package_name': instance.affectedPackageName, 'affected_range': instance.affectedRange, }; GithubProjectItem _$GithubProjectItemFromJson(Map json) { return GithubProjectItem() ..name = json['name'] as String ..state = json['state'] as String ..body = json['body'] as String ..htmlUrl = json['html_url'] as String; } Map _$GithubProjectItemToJson(GithubProjectItem instance) => { 'name': instance.name, 'state': instance.state, 'body': instance.body, 'html_url': instance.htmlUrl, }; GithubProjectColumnItem _$GithubProjectColumnItemFromJson( Map json) { return GithubProjectColumnItem() ..htmlUrl = json['html_url'] as String ..columnsUrl = json['columns_url'] as String ..name = json['name'] as String; } Map _$GithubProjectColumnItemToJson( GithubProjectColumnItem instance) => { 'html_url': instance.htmlUrl, 'columns_url': instance.columnsUrl, 'name': instance.name, }; GithubInstallationRepositoriesItem _$GithubInstallationRepositoriesItemFromJson( Map json) { return GithubInstallationRepositoriesItem() ..repositoriesAdded = (json['repositories_added'] as List) ?.map((e) => e == null ? null : GithubNotificationItemRepo.fromJson(e as Map)) ?.toList() ..repositoriesRemoved = (json['repositories_removed'] as List) ?.map((e) => e == null ? null : GithubNotificationItemRepo.fromJson(e as Map)) ?.toList() ..repositoriesSelection = json['repositories_selection'] as String ..id = json['id'] as int; } Map _$GithubInstallationRepositoriesItemToJson( GithubInstallationRepositoriesItem instance) => { 'repositories_added': instance.repositoriesAdded, 'repositories_removed': instance.repositoriesRemoved, 'repositories_selection': instance.repositoriesSelection, 'id': instance.id, }; GithubCheckrunItem _$GithubCheckrunItemFromJson(Map json) { return GithubCheckrunItem() ..status = json['status'] as String ..name = json['name'] as String ..id = json['id'] as int; } Map _$GithubCheckrunItemToJson(GithubCheckrunItem instance) => { 'status': instance.status, 'name': instance.name, 'id': instance.id, }; GithubCheckSuiteItem _$GithubCheckSuiteItemFromJson(Map json) { return GithubCheckSuiteItem() ..status = json['status'] as String ..conclusion = json['conclusion'] as String; } Map _$GithubCheckSuiteItemToJson( GithubCheckSuiteItem instance) => { 'status': instance.status, 'conclusion': instance.conclusion, }; GithubContentReferenceItem _$GithubContentReferenceItemFromJson( Map json) { return GithubContentReferenceItem() ..id = json['id'] as int ..reference = json['reference'] as String; } Map _$GithubContentReferenceItemToJson( GithubContentReferenceItem instance) => { 'id': instance.id, 'reference': instance.reference, }; GithubContributorItem _$GithubContributorItemFromJson( Map json) { return GithubContributorItem() ..id = json['id'] as int ..login = json['login'] as String ..avatarUrl = json['avatar_url'] as String ..htmlUrl = json['html_url'] as String ..contributions = json['contributions'] as int; } Map _$GithubContributorItemToJson( GithubContributorItem instance) => { 'id': instance.id, 'login': instance.login, 'avatar_url': instance.avatarUrl, 'html_url': instance.htmlUrl, 'contributions': instance.contributions, }; GithubUserOrganizationItem _$GithubUserOrganizationItemFromJson( Map json) { return GithubUserOrganizationItem() ..id = json['id'] as int ..login = json['login'] as String ..avatarUrl = json['avatar_url'] as String ..description = json['description'] as String ..url = json['url'] as String; } Map _$GithubUserOrganizationItemToJson( GithubUserOrganizationItem instance) => { 'id': instance.id, 'login': instance.login, 'avatar_url': instance.avatarUrl, 'description': instance.description, 'url': instance.url, }; GistFiles _$GistFilesFromJson(Map json) { return GistFiles( filename: json['filename'] as String, size: json['size'] as int, rawUrl: json['raw_url'] as String, type: json['type'] as String, language: json['language'] as String, truncated: json['truncated'] as bool, content: json['content'] as String, ); } Map _$GistFilesToJson(GistFiles instance) => { 'filename': instance.filename, 'size': instance.size, 'raw_url': instance.rawUrl, 'type': instance.type, 'language': instance.language, 'truncated': instance.truncated, 'content': instance.content, }; GithubGistsItem _$GithubGistsItemFromJson(Map json) { return GithubGistsItem() ..id = json['id'] as String ..description = json['description'] as String ..public = json['public'] as bool ..files = (json['files'] as Map)?.map( (k, e) => MapEntry( k, e == null ? null : GistFiles.fromJson(e as Map)), ) ..owner = json['owner'] == null ? null : GithubEventUser.fromJson(json['owner'] as Map) ..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); } Map _$GithubGistsItemToJson(GithubGistsItem instance) => { 'id': instance.id, 'description': instance.description, 'public': instance.public, 'files': instance.files, 'owner': instance.owner, 'created_at': instance.createdAt?.toIso8601String(), 'updated_at': instance.updatedAt?.toIso8601String(), }; GithubFilesItem _$GithubFilesItemFromJson(Map json) { return GithubFilesItem() ..filename = json['filename'] as String ..status = json['status'] as String ..additions = json['additions'] as int ..deletions = json['deletions'] as int ..changes = json['changes'] as int ..patch = json['patch'] as String; } Map _$GithubFilesItemToJson(GithubFilesItem instance) => { 'filename': instance.filename, 'status': instance.status, 'additions': instance.additions, 'deletions': instance.deletions, 'changes': instance.changes, 'patch': instance.patch, }; GithubComparisonItem _$GithubComparisonItemFromJson(Map json) { return GithubComparisonItem() ..files = (json['files'] as List) ?.map((e) => e == null ? null : GithubFilesItem.fromJson(e as Map)) ?.toList() ..status = json['status'] as String ..aheadBy = json['ahead_by'] as int ..behindBy = json['behind_by'] as int; } Map _$GithubComparisonItemToJson( GithubComparisonItem instance) => { 'files': instance.files, 'status': instance.status, 'ahead_by': instance.aheadBy, 'behind_by': instance.behindBy, };