toJson method
Serializes these metrics for reports.
Implementation
Map<String, Object?> toJson() => <String, Object?>{
'maxDepth': maxDepth,
'transitiveCount': transitiveCount,
'directDependents': directDependents,
'paths': paths,
'centrality': centrality,
};