DBusIntrospectNode.fromXml constructor
DBusIntrospectNode.fromXml(
- XmlNode node
Implementation
factory DBusIntrospectNode.fromXml(XmlNode node) {
var name = node.getAttribute('name');
var interfaces = node
.findElements('interface')
.map((n) => DBusIntrospectInterface.fromXml(n))
.toList();
var children = node
.findElements('node')
.map((n) => DBusIntrospectNode.fromXml(n))
.toList();
return DBusIntrospectNode(
name: name, interfaces: interfaces, children: children);
}