getCateList method
Implementation
Future getCateList() async {
var decodedResponse;
try {
final response = await http.get(
Uri.parse('${WELLNESS_URL}api/diagnostic/get-categories'),
headers: {'Authorization': currentUserToken},
);
decodedResponse = json.decode(response.body);
getCatList = await decodedResponse['data'];
} catch (e) {
ErrorListner(
apiname: 'api/diagnostic/get-categories',
responsed: "${decodedResponse}",
request: "",
app_error: '${e}');
}
}