notification method
GET /api/v1/notifications/:id
- authentication (requires user)
- read read:notifications
Implementation
Future<Notification> notification(String id) async {
final response = await request(
Method.get,
"/api/v1/notifications/$id",
authenticated: true,
);
return Notification.fromJson(json.decode(response.body));
}