read method
Marks a notification as read.
Parameters:
userNotification
: The UserNotification to mark as read.
Returns:
- A Future that resolves to a string response.
Implementation
Future<String> read(UserNotification userNotification) async {
return dio
.post(
"/read",
data: userNotification.toJSON(),
)
.then(
(response) => response.data,
);
}