parse static method

RssPodcastIndexSeason? parse(
  1. XmlElement? element
)

Implementation

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

  return RssPodcastIndexSeason(
    season: int.tryParse(element.innerText.trim()) ?? 0,
    name: element.getAttribute('name'),
  );
}