toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() => {
      'rules': codeRules.map((rule) => rule.toJson()).toList(),
      'rules-excludes': rulesExcludes.map((glob) => glob.pattern).toList(),
      'anti-patterns':
          antiPatterns.map((pattern) => pattern.toJson()).toList(),
      'metrics-config': metricsConfig,
      'class-metrics': classesMetrics.map((metric) => metric.id).toList(),
      'method-metrics': methodsMetrics.map((metric) => metric.id).toList(),
      'file-metrics': fileMetrics.map((metric) => metric.id).toList(),
      'metrics-excludes':
          metricsExcludes.map((glob) => glob.pattern).toList(),
      'analysis-options-path': analysisOptionsPath,
    };