Event.fromXml constructor
Event.fromXml(
- XmlElement elem
Implementation
factory Event.fromXml(_s.XmlElement elem) {
return Event(
date: _s.extractXmlDateTimeValue(elem, 'Date'),
eventCategories: _s
.extractXmlChild(elem, 'EventCategories')
?.let((elem) => _s.extractXmlStringListValues(elem, 'EventCategory')),
message: _s.extractXmlStringValue(elem, 'Message'),
sourceIdentifier: _s.extractXmlStringValue(elem, 'SourceIdentifier'),
sourceType: _s.extractXmlStringValue(elem, 'SourceType')?.toSourceType(),
);
}