Refactor ReportRequestBody for a single test

This commit is contained in:
hunteraraujo
2023-09-18 17:09:23 -07:00
parent c09a0e7afa
commit da9fd926c8

View File

@@ -1,15 +1,14 @@
class ReportRequestBody {
final String category;
final List<String> tests;
final String test;
final String testRunId;
final bool mock;
ReportRequestBody(
{required this.category, required this.tests, required this.mock});
ReportRequestBody(this.mock, {required this.test, required this.testRunId});
Map<String, dynamic> toJson() {
return {
'category': category,
'tests': tests,
'test': test,
'test_run_id': testRunId,
'mock': mock,
};
}