// GENERATED CODE - DO NOT MODIFY BY HAND part of 'github.dart'; // ************************************************************************** // JsonSerializableGenerator // ************************************************************************** GithubEvent _$GithubEventFromJson(Map json) { return GithubEvent() ..actor = json['actor'] == null ? null : GithubEventActor.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'] as String ..payload = json['payload'] as Map; } Map _$GithubEventToJson(GithubEvent instance) => { 'actor': instance.actor, 'type': instance.type, 'repo': instance.repo, 'created_at': instance.createdAt, 'payload': instance.payload, }; GithubEventActor _$GithubEventActorFromJson(Map json) { return GithubEventActor() ..login = json['login'] as String ..avatarUrl = json['avatar_url'] as String; } Map _$GithubEventActorToJson(GithubEventActor 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, }; GithubTrendingItem _$GithubTrendingItemFromJson(Map json) { return GithubTrendingItem() ..author = json['author'] as String ..name = json['name'] as String ..avatar = json['avatar'] as String ..description = json['description'] as String ..language = json['language'] as String ..languageColor = json['languageColor'] as String ..stars = json['stars'] as int ..forks = json['forks'] as int ..currentPeriodStars = json['currentPeriodStars'] as int; } Map _$GithubTrendingItemToJson(GithubTrendingItem instance) => { 'author': instance.author, 'name': instance.name, 'avatar': instance.avatar, 'description': instance.description, 'language': instance.language, 'languageColor': instance.languageColor, 'stars': instance.stars, 'forks': instance.forks, 'currentPeriodStars': instance.currentPeriodStars, };