mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2025-12-18 22:44:21 +01:00
This commit adds a new boolean field, "mock", to the `ReportRequestBody` class. This additional field is in line with the new requirements to specify whether the report is a mock or not. The `toJson()` method is also updated to include this new field during serialization.
17 lines
325 B
Dart
17 lines
325 B
Dart
class ReportRequestBody {
|
|
final String category;
|
|
final List<String> tests;
|
|
final bool mock;
|
|
|
|
ReportRequestBody(
|
|
{required this.category, required this.tests, required this.mock});
|
|
|
|
Map<String, dynamic> toJson() {
|
|
return {
|
|
'category': category,
|
|
'tests': tests,
|
|
'mock': mock,
|
|
};
|
|
}
|
|
}
|