getCurrentTestCase method

Future<TestCase?> getCurrentTestCase()

Implementation

Future<TestCase?> getCurrentTestCase() async{
  Api<void,Map<String,dynamic>>? api = _getApi(ApiName.getCurrentTestCase);
  RequestContext context = RequestContext();
  Map<String,dynamic>? json = await api?.request(null, context);
  return json?['CurrentTestCase'] == null ? null : TestCase.from(json!['CurrentTestCase']);
}