getReimbursementStatusData method
Future
getReimbursementStatusData(
{ - dynamic packageId,
})
Implementation
Future getReimbursementStatusData({
packageId,
}) async {
var decodedResponse;
var url =
'${WELLNESS_URL}api/fetch-reimbursement-status?package_id=$packageId';
try {
final response = await http.get(
Uri.parse(url),
headers: {'Authorization': currentUserToken},
);
decodedResponse = json.decode(response.body);
getReimbursementStatusDetails = decodedResponse['data'];
} catch (e) {
ErrorListner(
apiname: '$url',
responsed: "${decodedResponse}",
request: "",
app_error: '${e}',
);
}
}