mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2025-12-18 22:44:21 +01:00
This commit introduces a new Dart class, `ReportRequestBody`, which represents the request body for generating reports in the `BenchmarkService`. The class includes a `toJson` method for easy serialization to JSON format. - `category`: Specifies the category of the report (e.g., "coding"). - `tests`: A list of tests to be included in the report.
14 lines
259 B
Dart
14 lines
259 B
Dart
class ReportRequestBody {
|
|
final String category;
|
|
final List<String> tests;
|
|
|
|
ReportRequestBody({required this.category, required this.tests});
|
|
|
|
Map<String, dynamic> toJson() {
|
|
return {
|
|
'category': category,
|
|
'tests': tests,
|
|
};
|
|
}
|
|
}
|