AnalysisScheme.fromXml constructor

AnalysisScheme.fromXml(
  1. XmlElement elem
)

Implementation

factory AnalysisScheme.fromXml(_s.XmlElement elem) {
  return AnalysisScheme(
    analysisSchemeLanguage: _s
        .extractXmlStringValue(elem, 'AnalysisSchemeLanguage')!
        .toAnalysisSchemeLanguage(),
    analysisSchemeName: _s.extractXmlStringValue(elem, 'AnalysisSchemeName')!,
    analysisOptions: _s
        .extractXmlChild(elem, 'AnalysisOptions')
        ?.let((e) => AnalysisOptions.fromXml(e)),
  );
}