SourceDataMap.fromXml constructor
SourceDataMap.fromXml(
- XmlElement elem
Implementation
factory SourceDataMap.fromXml(_s.XmlElement elem) {
return SourceDataMap(
sourceName: _s.extractXmlStringValue(elem, 'SourceName')!,
cases: Map.fromEntries(
elem.getElement('Cases')?.findElements('entry').map(
(c) => MapEntry(
_s.extractXmlStringValue(c, 'key')!,
_s.extractXmlStringValue(c, 'value')!,
),
) ??
{},
),
defaultValue: _s.extractXmlStringValue(elem, 'DefaultValue'),
);
}