mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2025-12-17 22:14:28 +01:00
Extend ReportRequestBody to Include "mock" Boolean Field
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.
This commit is contained in:
@@ -1,13 +1,16 @@
|
|||||||
class ReportRequestBody {
|
class ReportRequestBody {
|
||||||
final String category;
|
final String category;
|
||||||
final List<String> tests;
|
final List<String> tests;
|
||||||
|
final bool mock;
|
||||||
|
|
||||||
ReportRequestBody({required this.category, required this.tests});
|
ReportRequestBody(
|
||||||
|
{required this.category, required this.tests, required this.mock});
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
Map<String, dynamic> toJson() {
|
||||||
return {
|
return {
|
||||||
'category': category,
|
'category': category,
|
||||||
'tests': tests,
|
'tests': tests,
|
||||||
|
'mock': mock,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user