Returns this object in JSON format.
Map<String, dynamic> toJson() => { 'rootDir': rootDir, 'nodes': nodes, 'subgraphs': subgraphs, 'edges': edges, 'metrics': metrics };