BlogArticles method

dynamic BlogArticles()

Implementation

BlogArticles() async {
  var decodedResponse;
  try {
    http.Response response = await http
        .post(Uri.parse('${SDK_BASE_URL}home_api/health_blog'), headers: {
      "Authorization": SignUpController.currentUserToken,
    }, body: {});

    decodedResponse = json.decode(response.body);
    blogs = decodedResponse['health_feed'];
  } catch (e) {
    errorListner(
        apiname: 'home_api/health_blog',
        responsed: "${decodedResponse}",
        request: '',
        app_error: '${e}');
  }
}