getMedicinePlaceOrderDetails method
Future
getMedicinePlaceOrderDetails(
)
Implementation
Future getMedicinePlaceOrderDetails() async {
var decodedResponse;
try {
final response = await http.get(
Uri.parse('${WELLNESS_URL}api/medicine/place-order-page-details'),
headers: {'Authorization': currentUserToken},
);
decodedResponse = json.decode(response.body);
if (decodedResponse['success'] == true) {
getmedicinePlaceOrderData = decodedResponse['data'];
} else {
Get.back();
}
} catch (e) {
ErrorListner(
apiname: 'api/medicine/place-order-page-details',
responsed: "${decodedResponse}",
request: "",
app_error: '${e}');
}
}