NotificationListFunction method

dynamic NotificationListFunction()

Implementation

NotificationListFunction() async {
  var decodedResponse;

  try {
    http.Response response = await http
        .get(Uri.parse('${SDK_BASE_URL}notification_api/get_list'), headers: {
      "Authorization": SignUpController.currentUserToken,
    });
    decodedResponse = json.decode(response.body);
    Notification = decodedResponse['notification'];
  } catch (e) {
    errorListner(
        apiname: 'api/notification_api/index',
        responsed: "${decodedResponse}",
        request: '',
        app_error: '${e}');
  }
}