2019-12-08 07:21:14 +01:00
|
|
|
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
|
|
|
2019-12-12 07:02:48 +01:00
|
|
|
part of 'github.dart';
|
2019-12-08 07:21:14 +01:00
|
|
|
|
|
|
|
// **************************************************************************
|
|
|
|
// JsonSerializableGenerator
|
|
|
|
// **************************************************************************
|
|
|
|
|
|
|
|
GithubEvent _$GithubEventFromJson(Map<String, dynamic> json) {
|
|
|
|
return GithubEvent()
|
|
|
|
..actor = json['actor'] == null
|
|
|
|
? null
|
|
|
|
: GithubEventActor.fromJson(json['actor'] as Map<String, dynamic>)
|
|
|
|
..type = json['type'] as String
|
|
|
|
..repo = json['repo'] == null
|
|
|
|
? null
|
|
|
|
: GithubEventRepo.fromJson(json['repo'] as Map<String, dynamic>)
|
|
|
|
..createdAt = json['created_at'] as String
|
|
|
|
..payload = json['payload'] as Map<String, dynamic>;
|
|
|
|
}
|
|
|
|
|
|
|
|
Map<String, dynamic> _$GithubEventToJson(GithubEvent instance) =>
|
|
|
|
<String, dynamic>{
|
|
|
|
'actor': instance.actor,
|
|
|
|
'type': instance.type,
|
|
|
|
'repo': instance.repo,
|
|
|
|
'created_at': instance.createdAt,
|
|
|
|
'payload': instance.payload,
|
|
|
|
};
|
|
|
|
|
|
|
|
GithubEventActor _$GithubEventActorFromJson(Map<String, dynamic> json) {
|
|
|
|
return GithubEventActor()
|
|
|
|
..login = json['login'] as String
|
|
|
|
..avatarUrl = json['avatar_url'] as String;
|
|
|
|
}
|
|
|
|
|
|
|
|
Map<String, dynamic> _$GithubEventActorToJson(GithubEventActor instance) =>
|
|
|
|
<String, dynamic>{
|
|
|
|
'login': instance.login,
|
|
|
|
'avatar_url': instance.avatarUrl,
|
|
|
|
};
|
|
|
|
|
|
|
|
GithubEventRepo _$GithubEventRepoFromJson(Map<String, dynamic> json) {
|
|
|
|
return GithubEventRepo()..name = json['name'] as String;
|
|
|
|
}
|
|
|
|
|
|
|
|
Map<String, dynamic> _$GithubEventRepoToJson(GithubEventRepo instance) =>
|
|
|
|
<String, dynamic>{
|
|
|
|
'name': instance.name,
|
|
|
|
};
|
2019-12-12 07:02:48 +01:00
|
|
|
|
|
|
|
GithubTrendingItem _$GithubTrendingItemFromJson(Map<String, dynamic> 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<String, dynamic> _$GithubTrendingItemToJson(GithubTrendingItem instance) =>
|
|
|
|
<String, dynamic>{
|
|
|
|
'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,
|
|
|
|
};
|