// GENERATED CODE - DO NOT MODIFY BY HAND part of 'github_me.dart'; // ************************************************************************** // JsonSerializableGenerator // ************************************************************************** GithubMe _$GithubMeFromJson(Map json) { return GithubMe() ..viewer = json['viewer'] == null ? null : GithubMeUser.fromJson(json['viewer'] as Map); } Map _$GithubMeToJson(GithubMe instance) => { 'viewer': instance.viewer?.toJson(), }; GithubMeUser _$GithubMeUserFromJson(Map json) { return GithubMeUser() ..login = json['login'] as String ..avatarUrl = json['avatarUrl'] as String ..url = json['url'] as String ..name = json['name'] as String ..bio = json['bio'] as String ..company = json['company'] as String ..location = json['location'] as String ..email = json['email'] as String ..websiteUrl = json['websiteUrl'] as String ..starredRepositories = json['starredRepositories'] == null ? null : GithubMeStarredRepositoryConnection.fromJson( json['starredRepositories'] as Map) ..followers = json['followers'] == null ? null : GithubMeFollowerConnection.fromJson( json['followers'] as Map) ..following = json['following'] == null ? null : GithubMeFollowingConnection.fromJson( json['following'] as Map) ..repositories = json['repositories'] == null ? null : GithubMeRepositoryConnection.fromJson( json['repositories'] as Map) ..contributionsCollection = json['contributionsCollection'] == null ? null : GithubMeContributionsCollection.fromJson( json['contributionsCollection'] as Map) ..resolveType = json['__typename'] as String; } Map _$GithubMeUserToJson(GithubMeUser instance) => { 'login': instance.login, 'avatarUrl': instance.avatarUrl, 'url': instance.url, 'name': instance.name, 'bio': instance.bio, 'company': instance.company, 'location': instance.location, 'email': instance.email, 'websiteUrl': instance.websiteUrl, 'starredRepositories': instance.starredRepositories?.toJson(), 'followers': instance.followers?.toJson(), 'following': instance.following?.toJson(), 'repositories': instance.repositories?.toJson(), 'contributionsCollection': instance.contributionsCollection?.toJson(), '__typename': instance.resolveType, }; GithubMeStarredRepositoryConnection _$GithubMeStarredRepositoryConnectionFromJson(Map json) { return GithubMeStarredRepositoryConnection() ..totalCount = json['totalCount'] as int; } Map _$GithubMeStarredRepositoryConnectionToJson( GithubMeStarredRepositoryConnection instance) => { 'totalCount': instance.totalCount, }; GithubMeFollowerConnection _$GithubMeFollowerConnectionFromJson( Map json) { return GithubMeFollowerConnection()..totalCount = json['totalCount'] as int; } Map _$GithubMeFollowerConnectionToJson( GithubMeFollowerConnection instance) => { 'totalCount': instance.totalCount, }; GithubMeFollowingConnection _$GithubMeFollowingConnectionFromJson( Map json) { return GithubMeFollowingConnection()..totalCount = json['totalCount'] as int; } Map _$GithubMeFollowingConnectionToJson( GithubMeFollowingConnection instance) => { 'totalCount': instance.totalCount, }; GithubMeRepositoryConnection _$GithubMeRepositoryConnectionFromJson( Map json) { return GithubMeRepositoryConnection()..totalCount = json['totalCount'] as int; } Map _$GithubMeRepositoryConnectionToJson( GithubMeRepositoryConnection instance) => { 'totalCount': instance.totalCount, }; GithubMeContributionsCollection _$GithubMeContributionsCollectionFromJson( Map json) { return GithubMeContributionsCollection() ..contributionCalendar = json['contributionCalendar'] == null ? null : GithubMeContributionCalendar.fromJson( json['contributionCalendar'] as Map); } Map _$GithubMeContributionsCollectionToJson( GithubMeContributionsCollection instance) => { 'contributionCalendar': instance.contributionCalendar?.toJson(), }; GithubMeContributionCalendar _$GithubMeContributionCalendarFromJson( Map json) { return GithubMeContributionCalendar() ..weeks = (json['weeks'] as List) ?.map((e) => e == null ? null : GithubMeContributionCalendarWeek.fromJson( e as Map)) ?.toList(); } Map _$GithubMeContributionCalendarToJson( GithubMeContributionCalendar instance) => { 'weeks': instance.weeks?.map((e) => e?.toJson())?.toList(), }; GithubMeContributionCalendarWeek _$GithubMeContributionCalendarWeekFromJson( Map json) { return GithubMeContributionCalendarWeek() ..contributionDays = (json['contributionDays'] as List) ?.map((e) => e == null ? null : GithubMeContributionCalendarDay.fromJson( e as Map)) ?.toList(); } Map _$GithubMeContributionCalendarWeekToJson( GithubMeContributionCalendarWeek instance) => { 'contributionDays': instance.contributionDays?.map((e) => e?.toJson())?.toList(), }; GithubMeContributionCalendarDay _$GithubMeContributionCalendarDayFromJson( Map json) { return GithubMeContributionCalendarDay()..color = json['color'] as String; } Map _$GithubMeContributionCalendarDayToJson( GithubMeContributionCalendarDay instance) => { 'color': instance.color, }; GithubMeAuditEntryActor _$GithubMeAuditEntryActorFromJson( Map json) { return GithubMeAuditEntryActor(); } Map _$GithubMeAuditEntryActorToJson( GithubMeAuditEntryActor instance) => {}; GithubMeNode _$GithubMeNodeFromJson(Map json) { return GithubMeNode()..resolveType = json['__typename'] as String; } Map _$GithubMeNodeToJson(GithubMeNode instance) => { '__typename': instance.resolveType, }; GithubMeActor _$GithubMeActorFromJson(Map json) { return GithubMeActor() ..login = json['login'] as String ..avatarUrl = json['avatarUrl'] as String ..url = json['url'] as String ..resolveType = json['__typename'] as String; } Map _$GithubMeActorToJson(GithubMeActor instance) => { 'login': instance.login, 'avatarUrl': instance.avatarUrl, 'url': instance.url, '__typename': instance.resolveType, }; GithubMeRegistryPackageOwner _$GithubMeRegistryPackageOwnerFromJson( Map json) { return GithubMeRegistryPackageOwner() ..resolveType = json['__typename'] as String; } Map _$GithubMeRegistryPackageOwnerToJson( GithubMeRegistryPackageOwner instance) => { '__typename': instance.resolveType, }; GithubMeRegistryPackageSearch _$GithubMeRegistryPackageSearchFromJson( Map json) { return GithubMeRegistryPackageSearch() ..resolveType = json['__typename'] as String; } Map _$GithubMeRegistryPackageSearchToJson( GithubMeRegistryPackageSearch instance) => { '__typename': instance.resolveType, }; GithubMeProjectOwner _$GithubMeProjectOwnerFromJson(Map json) { return GithubMeProjectOwner()..resolveType = json['__typename'] as String; } Map _$GithubMeProjectOwnerToJson( GithubMeProjectOwner instance) => { '__typename': instance.resolveType, }; GithubMeRepositoryOwner _$GithubMeRepositoryOwnerFromJson( Map json) { return GithubMeRepositoryOwner() ..login = json['login'] as String ..avatarUrl = json['avatarUrl'] as String ..url = json['url'] as String ..repositories = json['repositories'] == null ? null : GithubMeRepositoryConnection.fromJson( json['repositories'] as Map) ..resolveType = json['__typename'] as String; } Map _$GithubMeRepositoryOwnerToJson( GithubMeRepositoryOwner instance) => { 'login': instance.login, 'avatarUrl': instance.avatarUrl, 'url': instance.url, 'repositories': instance.repositories?.toJson(), '__typename': instance.resolveType, }; GithubMeUniformResourceLocatable _$GithubMeUniformResourceLocatableFromJson( Map json) { return GithubMeUniformResourceLocatable() ..url = json['url'] as String ..resolveType = json['__typename'] as String; } Map _$GithubMeUniformResourceLocatableToJson( GithubMeUniformResourceLocatable instance) => { 'url': instance.url, '__typename': instance.resolveType, }; GithubMeProfileOwner _$GithubMeProfileOwnerFromJson(Map json) { return GithubMeProfileOwner() ..login = json['login'] as String ..name = json['name'] as String ..location = json['location'] as String ..email = json['email'] as String ..websiteUrl = json['websiteUrl'] as String ..resolveType = json['__typename'] as String; } Map _$GithubMeProfileOwnerToJson( GithubMeProfileOwner instance) => { 'login': instance.login, 'name': instance.name, 'location': instance.location, 'email': instance.email, 'websiteUrl': instance.websiteUrl, '__typename': instance.resolveType, }; GithubMeSponsorable _$GithubMeSponsorableFromJson(Map json) { return GithubMeSponsorable()..resolveType = json['__typename'] as String; } Map _$GithubMeSponsorableToJson( GithubMeSponsorable instance) => { '__typename': instance.resolveType, };