getSurveyQuestions static method
Implementation
static Future<dynamic> getSurveyQuestions(dynamic scrg, String url,
Map<String, String> urlHeaders, String uuid) async {
NetworkResponseData? response;
try {
response = await ApiHandler.getRequest(
customHeaders: urlHeaders,
url: url.replaceAll('{scrgval}', scrg).replaceAll('{uuidval}', uuid),
apiFailureMessage: 'Unable to get tips',
);
} catch (apiRequestError) {
PatientToast.showToast(message: apiRequestError.toString());
return null;
}
return response.data!;
}