toJson method

  1. @override
Map toJson()
override

Implementation

@override
Map toJson() {
  var owner = child.referencedNode.ownerDocument;
  return {
    'depth': 0,
    'root': {
      'nodeId': DOCUMENT_NODE_ID,
      'backendNodeId': DOCUMENT_NODE_ID,
      'nodeType': 9,
      'nodeName': '#document',
      'childNodeCount': 1,
      'children': [child.toJson()],
      'baseURL': owner.controller.url,
      'documentURL': owner.controller.url,
    },
  };
}