getTermsCondition method
Implementation
Future getTermsCondition() async {
var decodedResponse;
try {
final response = await http.get(
Uri.parse('${SDK_BASE_URL}api/onboarding/term_and_conditions'),
);
decodedResponse = json.decode(response.body);
getTermsConditionData = decodedResponse['html_content'];
} catch (e) {
errorListner(
apiname: 'api/onboarding/term_and_conditions',
responsed: "${decodedResponse}",
request: "",
app_error: '${e}');
}
}