getPrivacyPolicy method

Future getPrivacyPolicy()

Implementation

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