ClustersMessage.fromXml constructor

ClustersMessage.fromXml(
  1. XmlElement elem
)

Implementation

factory ClustersMessage.fromXml(_s.XmlElement elem) {
  return ClustersMessage(
    clusters: _s.extractXmlChild(elem, 'Clusters')?.let((elem) =>
        elem.findElements('Cluster').map((c) => Cluster.fromXml(c)).toList()),
    marker: _s.extractXmlStringValue(elem, 'Marker'),
  );
}