SourceAttribute.fromXml constructor

SourceAttribute.fromXml(
  1. XmlElement elem
)

Implementation

factory SourceAttribute.fromXml(_s.XmlElement elem) {
  return SourceAttribute(
    sourceDataFunction: _s
        .extractXmlStringValue(elem, 'SourceDataFunction')!
        .toSourceDataFunction(),
    sourceDataCopy: _s
        .extractXmlChild(elem, 'SourceDataCopy')
        ?.let((e) => SourceData.fromXml(e)),
    sourceDataMap: _s
        .extractXmlChild(elem, 'SourceDataMap')
        ?.let((e) => SourceDataMap.fromXml(e)),
    sourceDataTrimTitle: _s
        .extractXmlChild(elem, 'SourceDataTrimTitle')
        ?.let((e) => SourceDataTrimTitle.fromXml(e)),
  );
}