notification method

  1. @override
Future<void> notification({
  1. required String notId,
  2. required String appToken,
})
override

Implementation

@override
Future<void> notification({
  required String notId,
  required String appToken,
}) async {
  final notificationRequest = NotificationRequest(
    notificationRequest: Notification(
      appToken: appToken,
      id: notId,
      notId: notId,
    ),
  );

  final payload = notificationRequestToJson(notificationRequest);
  logger.i(payload);
  _postRequest(endpoint: '$version/notification/', payload: payload);
}