parse static method

RssPodcastIndexBlock? parse(
  1. XmlElement? element
)

Implementation

static RssPodcastIndexBlock? parse(XmlElement? element) {
  if (element == null) return RssPodcastIndexBlock(block: false);

  return RssPodcastIndexBlock(
    id: element.getAttribute('id'),
    block: element.innerText.toLowerCase() == 'yes' ? true : false,
  );
}