parse static method

RssPodcastIndex? parse(
  1. XmlElement? element
)

Implementation

static RssPodcastIndex? parse(XmlElement? element) {
  if (element == null) {
    return null;
  }

  return RssPodcastIndex(
    funding: element.findElements('podcast:funding').map((e) {
      return RssPodcastIndexFunding.parse(e);
    }).toList(),
    persons: element.findElements('podcast:person').map((e) {
      return RssPodcastIndexPerson.parse(e);
    }).toList(),
    locked: RssPodcastIndexLocked.parse(
      findElementOrNull(element, 'podcast:locked'),
    ),
    liveItems: element.findElements('podcast:liveItem').map((e) {
      return RssPodcastIndexLiveItem.parse(e);
    }).toList(),
  );
}