parse static method

RssPodcastIndexSoundbite? parse(
  1. XmlElement? element
)

Implementation

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

  return RssPodcastIndexSoundbite(
    startTime: double.parse(element.getAttribute('startTime') ?? '0.0'),
    duration: double.parse(element.getAttribute('duration') ?? '0.0'),
    value: element.text.trim(),
  );
}