GetTemplateOutput.fromXml constructor

GetTemplateOutput.fromXml(
  1. XmlElement elem
)

Implementation

factory GetTemplateOutput.fromXml(_s.XmlElement elem) {
  return GetTemplateOutput(
    stagesAvailable: _s.extractXmlChild(elem, 'StagesAvailable')?.let(
        (elem) => _s
            .extractXmlStringListValues(elem, 'member')
            .map((s) => s.toTemplateStage())
            .toList()),
    templateBody: _s.extractXmlStringValue(elem, 'TemplateBody'),
  );
}