Scene.parse constructor

Scene.parse(
  1. XmlElement element
)

Implementation

factory Scene.parse(XmlElement element) {
  return Scene(
    title: findElementOrNull(element, 'sceneTitle')?.innerText,
    description: findElementOrNull(element, 'sceneDescription')?.innerText,
    startTime: findElementOrNull(element, 'sceneStartTime')?.innerText,
    endTime: findElementOrNull(element, 'sceneEndTime')?.innerText,
  );
}