getDignosticscommonbookTestByCategory method
Future
getDignosticscommonbookTestByCategory(
{ - dynamic id,
})
Implementation
Future getDignosticscommonbookTestByCategory({id}) async {
var decodedResponse;
try {
final response = await http.get(
Uri.parse(
'${SDK_BASE_URL}diagnostics_api/test_by_category?category=${id}'),
headers: {'Authorization': SignUpController.currentUserToken},
);
decodedResponse = json.decode(response.body);
GetCommonlyBookTestByCategory = decodedResponse['data'];
} catch (e) {
errorListner(
apiname: 'diagnostics_api/test_by_category?category=${id}',
responsed: "${decodedResponse}",
request: '',
app_error: '${e}');
}
}