Event.fromXml constructor

Event.fromXml(
  1. 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(),
  );
}