SnapshotMessage.fromXml constructor

SnapshotMessage.fromXml(
  1. XmlElement elem
)

Implementation

factory SnapshotMessage.fromXml(_s.XmlElement elem) {
  return SnapshotMessage(
    marker: _s.extractXmlStringValue(elem, 'Marker'),
    snapshots: _s.extractXmlChild(elem, 'Snapshots')?.let((elem) => elem
        .findElements('Snapshot')
        .map((c) => Snapshot.fromXml(c))
        .toList()),
  );
}