ModerationAnalysis constructor

const ModerationAnalysis({
  1. required String text,
  2. required bool flagged,
  3. required Map<String, bool> categories,
  4. required Map<String, double> categoryScores,
  5. String? highestRiskCategory,
  6. required String riskLevel,
  7. required List<String> recommendations,
})

Implementation

const ModerationAnalysis({
  required this.text,
  required this.flagged,
  required this.categories,
  required this.categoryScores,
  this.highestRiskCategory,
  required this.riskLevel,
  required this.recommendations,
});