getTermsCondition method

Future getTermsCondition()

Implementation

Future getTermsCondition() async {
  var decodedResponse;
  try {
    final response = await http.get(
      Uri.parse('${WELLNESS_URL}api/terms-condition'),
    );
    decodedResponse = json.decode(response.body);
    getTermsConditionData = decodedResponse['html_content'];
  } catch (e) {
    ErrorListner(
        apiname: 'api/terms-condition',
        responsed: "${decodedResponse}",
        request: "",
        app_error: '${e}');
  }
}