DBusIntrospectNode.fromXml constructor

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