IndexField.fromXml constructor
IndexField.fromXml(
- XmlElement elem
Implementation
factory IndexField.fromXml(_s.XmlElement elem) {
return IndexField(
indexFieldName: _s.extractXmlStringValue(elem, 'IndexFieldName')!,
indexFieldType:
_s.extractXmlStringValue(elem, 'IndexFieldType')!.toIndexFieldType(),
literalOptions: _s
.extractXmlChild(elem, 'LiteralOptions')
?.let((e) => LiteralOptions.fromXml(e)),
sourceAttributes: _s.extractXmlChild(elem, 'SourceAttributes')?.let(
(elem) => elem
.findElements('member')
.map((c) => SourceAttribute.fromXml(c))
.toList()),
textOptions: _s
.extractXmlChild(elem, 'TextOptions')
?.let((e) => TextOptions.fromXml(e)),
uIntOptions: _s
.extractXmlChild(elem, 'UIntOptions')
?.let((e) => UIntOptions.fromXml(e)),
);
}