IndexField.fromXml constructor

IndexField.fromXml(
  1. XmlElement elem
)

Implementation

factory IndexField.fromXml(_s.XmlElement elem) {
  return IndexField(
    indexFieldName: _s.extractXmlStringValue(elem, 'IndexFieldName')!,
    indexFieldType:
        _s.extractXmlStringValue(elem, 'IndexFieldType')!.toIndexFieldType(),
    dateArrayOptions: _s
        .extractXmlChild(elem, 'DateArrayOptions')
        ?.let((e) => DateArrayOptions.fromXml(e)),
    dateOptions: _s
        .extractXmlChild(elem, 'DateOptions')
        ?.let((e) => DateOptions.fromXml(e)),
    doubleArrayOptions: _s
        .extractXmlChild(elem, 'DoubleArrayOptions')
        ?.let((e) => DoubleArrayOptions.fromXml(e)),
    doubleOptions: _s
        .extractXmlChild(elem, 'DoubleOptions')
        ?.let((e) => DoubleOptions.fromXml(e)),
    intArrayOptions: _s
        .extractXmlChild(elem, 'IntArrayOptions')
        ?.let((e) => IntArrayOptions.fromXml(e)),
    intOptions: _s
        .extractXmlChild(elem, 'IntOptions')
        ?.let((e) => IntOptions.fromXml(e)),
    latLonOptions: _s
        .extractXmlChild(elem, 'LatLonOptions')
        ?.let((e) => LatLonOptions.fromXml(e)),
    literalArrayOptions: _s
        .extractXmlChild(elem, 'LiteralArrayOptions')
        ?.let((e) => LiteralArrayOptions.fromXml(e)),
    literalOptions: _s
        .extractXmlChild(elem, 'LiteralOptions')
        ?.let((e) => LiteralOptions.fromXml(e)),
    textArrayOptions: _s
        .extractXmlChild(elem, 'TextArrayOptions')
        ?.let((e) => TextArrayOptions.fromXml(e)),
    textOptions: _s
        .extractXmlChild(elem, 'TextOptions')
        ?.let((e) => TextOptions.fromXml(e)),
  );
}