DownloadForms method
Implementation
Future DownloadForms() async {
var decodedResponse;
final ApiBody = "${policyList[indexvalue]['policy_no']}";
try {
final response = await http.post(
Uri.parse(
'${SDK_BASE_URL}claim_adminpanel/claim_api/forms_documents'),
body: {
"policy_no": ApiBody
},
headers: {
"Authorization": SignUpController.currentUserToken,
});
decodedResponse = json.decode(response.body);
downloadFormsList = decodedResponse['utilities'];
} catch (e) {
errorListner(
apiname: 'claim_adminpanel/claim_api/forms_documents',
responsed: "${decodedResponse}",
request: '${ApiBody}',
app_error: '${e}');
}
}