EventsMessage.fromXml constructor

EventsMessage.fromXml(
  1. XmlElement elem
)

Implementation

factory EventsMessage.fromXml(_s.XmlElement elem) {
  return EventsMessage(
    events: _s.extractXmlChild(elem, 'Events')?.let((elem) =>
        elem.findElements('Event').map((c) => Event.fromXml(c)).toList()),
    marker: _s.extractXmlStringValue(elem, 'Marker'),
  );
}