getcommonbookTestDescription method

Future getcommonbookTestDescription({
  1. dynamic id,
})

Implementation

Future getcommonbookTestDescription({id}) async {
  var decodedResponse;
  try {
    final response = await http.get(
      Uri.parse('${SDK_BASE_URL}diagnostics_api/test_details?test_id=${id}'),
      headers: {'Authorization': SignUpController.currentUserToken},
    );
    decodedResponse = json.decode(response.body);
    GetTestDescription = decodedResponse['data'];
  } catch (e) {
    errorListner(
        apiname: 'diagnostics_api/test_details?test_id=${id}',
        responsed: "${decodedResponse}",
        request: '',
        app_error: '${e}');
  }
}