DocumentSuggesterOptions.fromXml constructor

DocumentSuggesterOptions.fromXml(
  1. XmlElement elem
)

Implementation

factory DocumentSuggesterOptions.fromXml(_s.XmlElement elem) {
  return DocumentSuggesterOptions(
    sourceField: _s.extractXmlStringValue(elem, 'SourceField')!,
    fuzzyMatching: _s
        .extractXmlStringValue(elem, 'FuzzyMatching')
        ?.toSuggesterFuzzyMatching(),
    sortExpression: _s.extractXmlStringValue(elem, 'SortExpression'),
  );
}