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