2019-01-22 16:39:44 +01:00
|
|
|
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
|
|
|
|
|
|
part of 'notification.dart';
|
|
|
|
|
|
|
|
// **************************************************************************
|
|
|
|
// JsonSerializableGenerator
|
|
|
|
// **************************************************************************
|
|
|
|
|
|
|
|
Subject _$SubjectFromJson(Map<String, dynamic> json) {
|
|
|
|
return Subject(json['title'] as String, json['type'] as String);
|
|
|
|
}
|
|
|
|
|
|
|
|
Map<String, dynamic> _$SubjectToJson(Subject instance) =>
|
|
|
|
<String, dynamic>{'title': instance.title, 'type': instance.type};
|
|
|
|
|
|
|
|
Owner _$OwnerFromJson(Map<String, dynamic> json) {
|
|
|
|
return Owner(json['login'] as String, json['avatar_url'] as String);
|
|
|
|
}
|
|
|
|
|
|
|
|
Map<String, dynamic> _$OwnerToJson(Owner instance) => <String, dynamic>{
|
|
|
|
'login': instance.login,
|
|
|
|
'avatar_url': instance.avatarUrl
|
|
|
|
};
|
|
|
|
|
|
|
|
Repository _$RepositoryFromJson(Map<String, dynamic> json) {
|
|
|
|
return Repository(
|
|
|
|
json['full_name'] as String,
|
|
|
|
json['type'] as String,
|
|
|
|
json['onwer'] == null
|
|
|
|
? null
|
|
|
|
: Owner.fromJson(json['onwer'] as Map<String, dynamic>));
|
|
|
|
}
|
|
|
|
|
|
|
|
Map<String, dynamic> _$RepositoryToJson(Repository instance) =>
|
|
|
|
<String, dynamic>{
|
|
|
|
'full_name': instance.fullName,
|
|
|
|
'type': instance.type,
|
|
|
|
'onwer': instance.onwer
|
|
|
|
};
|
|
|
|
|
|
|
|
NotificationItem _$NotificationItemFromJson(Map<String, dynamic> json) {
|
|
|
|
return NotificationItem(
|
|
|
|
json['id'] as String,
|
|
|
|
json['type'] as String,
|
2019-01-25 13:35:20 +01:00
|
|
|
json['updated_at'] as String,
|
2019-01-22 16:39:44 +01:00
|
|
|
json['repository'] == null
|
|
|
|
? null
|
2019-01-25 13:35:20 +01:00
|
|
|
: Repository.fromJson(json['repository'] as Map<String, dynamic>),
|
|
|
|
json['subject'] == null
|
|
|
|
? null
|
|
|
|
: Subject.fromJson(json['subject'] as Map<String, dynamic>))
|
2019-01-22 16:39:44 +01:00
|
|
|
..payload = json['payload'] as Map<String, dynamic>;
|
|
|
|
}
|
|
|
|
|
|
|
|
Map<String, dynamic> _$NotificationItemToJson(NotificationItem instance) =>
|
|
|
|
<String, dynamic>{
|
|
|
|
'id': instance.id,
|
|
|
|
'type': instance.type,
|
2019-01-25 13:35:20 +01:00
|
|
|
'updated_at': instance.updatedAt,
|
2019-01-22 16:39:44 +01:00
|
|
|
'repository': instance.repository,
|
2019-01-25 13:35:20 +01:00
|
|
|
'subject': instance.subject,
|
2019-01-22 16:39:44 +01:00
|
|
|
'payload': instance.payload
|
|
|
|
};
|