getOrderDetails method

Future getOrderDetails()

Implementation

Future getOrderDetails() async {
  var decodedResponse;
  try {
    http.Response response = await http.get(
      Uri.parse("${SDK_BASE_URL}api/diagnostics/myaccount_orders"),
      headers: {"Authorization": SignUpController.currentUserToken},
    );
    decodedResponse = json.decode(response.body);
    getMyOrdersList = decodedResponse['data'];
  } catch (e) {
    errorListner(
        apiname: 'api/diagnostics/myaccount',
        responsed: "${decodedResponse}",
        request: "",
        app_error: '${e}');
  }
}