tsacdop-podcast-app-android/lib/type/searchpodcast.g.dart

52 lines
1.8 KiB
Dart
Raw Normal View History

2020-02-09 13:29:09 +01:00
// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'searchpodcast.dart';
// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************
SearchPodcast<P> _$SearchPodcastFromJson<P>(Map<String, dynamic> json) {
return SearchPodcast<P>(
results: (json['results'] as List)?.map(_ConvertP<P>().fromJson)?.toList(),
nextOffset: json['next_offset'] as int,
total: json['total'] as int,
count: json['count'] as int,
);
2020-02-09 13:29:09 +01:00
}
Map<String, dynamic> _$SearchPodcastToJson<P>(SearchPodcast<P> instance) =>
<String, dynamic>{
'results': instance.results?.map(_ConvertP<P>().toJson)?.toList(),
2020-02-09 13:29:09 +01:00
'next_offset': instance.nextOffset,
'total': instance.total,
'count': instance.count,
2020-02-09 13:29:09 +01:00
};
OnlinePodcast _$OnlinePodcastFromJson(Map<String, dynamic> json) {
return OnlinePodcast(
earliestPubDate: json['earliest_pub_date_ms'] as int,
title: json['title_original'] as String,
count: json['total_episodes'] as int,
description: json['description_original'] as String,
image: json['image'] as String,
latestPubDate: json['latest_pub_date_ms'] as int,
rss: json['rss'] as String,
publisher: json['publisher_original'] as String,
id: json['id'] as String,
);
2020-02-09 13:29:09 +01:00
}
Map<String, dynamic> _$OnlinePodcastToJson(OnlinePodcast instance) =>
<String, dynamic>{
'earliest_pub_date_ms': instance.earliestPubDate,
'title_original': instance.title,
'rss': instance.rss,
'latest_pub_date_ms': instance.latestPubDate,
2020-02-09 13:29:09 +01:00
'description_original': instance.description,
'total_episodes': instance.count,
'image': instance.image,
'publisher_original': instance.publisher,
'id': instance.id,
2020-02-09 13:29:09 +01:00
};