parse static method

RssPodcastIndexValue? parse(
  1. XmlElement? element
)

Implementation

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

  return RssPodcastIndexValue(
    type: element.getAttribute('type'),
    method: element.getAttribute('method'),
    suggested: double.parse(element.getAttribute('suggested') ?? '0.0'),
    recipients: element.findElements('podcast:valueRecipient').map((e) {
      return RssPodcastIndexValueRecipient.parse(e);
    }).toList(),
  );
}