Scene.parse constructor

Scene.parse(
  1. XmlElement element,
  2. bool parseHtml
)

Parse constructor for the Scene class, used when 'parsing' a feed

Implementation

factory Scene.parse(XmlElement element, bool parseHtml) => Scene(
      title: element
          .findElements('sceneTitle')
          .firstOrNull
          ?.parseText(parseHtml),
      description: element
          .findElements('sceneDescription')
          .firstOrNull
          ?.parseText(parseHtml),
      startTime:
          element.findElements('sceneStartTime').firstOrNull?.innerText,
      endTime: element.findElements('sceneEndTime').firstOrNull?.innerText,
    );