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