getNotificationList method

Future<Response> getNotificationList()

to get notifications user need to use below API which returns business notifications list

Implementation

Future<http.Response> getNotificationList() async {
  Uri url = Uri.parse(
      "$_baseUrl/notification/list/${SharedPreference.getBusinessConfig()!.businessId}");

  http.Response response =
      await http.Client().get(url, headers: kGetRequestHeader);

  if (response.statusCode == 200) {
    printMessage("GET NOTIFICATION LIST RESPONSE = ${response.statusCode}");
    return response;
  } else {
    printMessage("GET NOTIFICATION LIST RESPONSE = ${response.statusCode}");
    return response;
  }
}