addResultsForCases method

Future<void> addResultsForCases(
  1. List<TestStatus> testStatusResults
)

Implementation

Future<void> addResultsForCases(
  List<TestStatus> testStatusResults,
) async {
  final results = testStatusResults.map((status) => status.toJson()).toList();
  await FlutterTestRail.instance.client.request(
    '/add_results_for_cases/$id',
    RequestMethod.post,
    params: {
      'results': results,
    },
  );
}