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 { class ReportRequestBody {
final String category; final String test;
final List<String> tests; final String testRunId;
final bool mock; final bool mock;
ReportRequestBody( ReportRequestBody(this.mock, {required this.test, required this.testRunId});
{required this.category, required this.tests, required this.mock});
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
return { return {
'category': category, 'test': test,
'tests': tests, 'test_run_id': testRunId,
'mock': mock, 'mock': mock,
}; };
} }