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(),
    persons: element.findElements('podcast:person').map((e) {
      return RssPodcastIndexPerson.parse(e);
    }).toList(),
    value: element.findElements('podcast:value').map((e) {
      return RssPodcastIndexValue.parse(e);
    }).toList(),
    license: RssPodcastIndexLicense.parse(
      findElementOrNull(element, 'podcast:license'),
    ),
    season: RssPodcastIndexSeason.parse(
      findElementOrNull(element, 'podcast:season'),
    ),
  );
}