toJson method
Implementation
Map<String, dynamic> toJson() {
return {
'generated_at': generatedAt.toIso8601String(),
'score': {
'total': totalScore,
'categories': categoryScores.map(
(k, v) => MapEntry(k, {'score': v.score, 'weight': v.weight}),
),
},
'metrics': metrics,
'issues': issues.map((i) => i.toJson()).toList(),
};
}