toJson method

Map<String, Object?> toJson()

Serializes these metrics for reports.

Implementation

Map<String, Object?> toJson() => <String, Object?>{
      'maxDepth': maxDepth,
      'transitiveCount': transitiveCount,
      'directDependents': directDependents,
      'paths': paths,
      'centrality': centrality,
    };