Scene.parse constructor

Scene.parse(
  1. XmlElement element
)

Implementation

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