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>(
|
2020-07-22 11:34:32 +02:00
|
|
|
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>{
|
2020-07-22 11:34:32 +02:00
|
|
|
'results': instance.results?.map(_ConvertP<P>().toJson)?.toList(),
|
2020-02-09 13:29:09 +01:00
|
|
|
'next_offset': instance.nextOffset,
|
|
|
|
'total': instance.total,
|
2020-07-22 11:34:32 +02:00
|
|
|
'count': instance.count,
|
2020-02-09 13:29:09 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
OnlinePodcast _$OnlinePodcastFromJson(Map<String, dynamic> json) {
|
|
|
|
return OnlinePodcast(
|
2020-07-22 11:34:32 +02:00
|
|
|
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,
|
2020-07-22 11:34:32 +02:00
|
|
|
'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,
|
2020-07-22 11:34:32 +02:00
|
|
|
'publisher_original': instance.publisher,
|
|
|
|
'id': instance.id,
|
2020-02-09 13:29:09 +01:00
|
|
|
};
|