Skip to content

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.

Add ReportRequestBody model with JSON serialization

hunteraraujo8e25cd2391b3
diff --git a/frontend/lib/models/benchmark_service/report_request_body.dart b/frontend/lib/models/benchmark_service/report_request_body.dart
new file mode 100644
index 0000000000..3cda0995ae
--- /dev/null
+++ b/frontend/lib/models/benchmark_service/report_request_body.dart
@@ -0,0 +1,13 @@
+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,
+ };
+ }
+}