RssItemPodcastIndex.parse constructor

RssItemPodcastIndex.parse(
  1. 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(),
  );
}