RssItemPodcastIndex.parse constructor
RssItemPodcastIndex.parse(
- XmlElement element
Implementation
factory RssItemPodcastIndex.parse(XmlElement element) {
return RssItemPodcastIndex(
chapters: RssPodcastIndexChapters.parse(
findElementOrNull(element, 'podcast:chapters'),
),
transcripts: element.findElements('podcast:transcript').map((e) {
return RssPodcastIndexTranscript.parse(e);
}).toList(),
soundbites: element.findElements('podcast:soundbite').map((e) {
return RssPodcastIndexSoundbite.parse(e);
}).toList(),
persons: element.findElements('podcast:person').map((e) {
return RssPodcastIndexPerson.parse(e);
}).toList(),
value: element.findElements('podcast:value').map((e) {
return RssPodcastIndexValue.parse(e);
}).toList(),
alternateEnclosure:
element.findElements('podcast:alternateEnclosure').map((e) {
return RssPodcastIndexAlternateEnclosure.parse(e);
}).toList(),
license: RssPodcastIndexLicense.parse(
findElementOrNull(element, 'podcast:license'),
),
season: RssPodcastIndexSeason.parse(
findElementOrNull(element, 'podcast:season'),
),
);
}