Event.fromXml constructor
Event.fromXml(
- XmlElement elem
Implementation
factory Event.fromXml(_s.XmlElement elem) {
return Event(
date: _s.extractXmlDateTimeValue(elem, 'Date'),
message: _s.extractXmlStringValue(elem, 'Message'),
sourceIdentifier: _s.extractXmlStringValue(elem, 'SourceIdentifier'),
sourceType: _s.extractXmlStringValue(elem, 'SourceType')?.toSourceType(),
);
}