getDiagnosticsOrderDetails method
Future
getDiagnosticsOrderDetails(
{ - dynamic order_id,
})
Implementation
Future getDiagnosticsOrderDetails({order_id}) async {
var decodedResponse;
try {
final response = await http.get(
Uri.parse('${medicine_API}api/diagnostic/order-details/$order_id'),
headers: {'Authorization': currentUserToken},
);
decodedResponse = json.decode(response.body);
TestviewDetails = await decodedResponse['response'];
diagnostic_order_id = await TestviewDetails['order_id'];
print(response.request);
print(response.body);
} catch (e) {
print(e);
ErrorListner(
apiname: 'api/diagnostic/order-details/${order_id}',
responsed: "${decodedResponse}",
request: "",
app_error: '${e}');
}
}