create static method
Implementation
static Future<TestRun> create({
Iterable<int>? caseIds,
String? description,
bool includeAll = false,
required String name,
required int projectId,
}) async {
final response = await FlutterTestRail.instance.client.request(
'/add_run/$projectId',
RequestMethod.post,
params: <String, dynamic>{
if (caseIds != null) 'case_ids': caseIds,
if (description != null) 'description': description,
'include_all': includeAll,
'name': name,
},
);
return TestRun.fromJson(response!);
}