fix(notifications): fixed consultantLeftComment notifications issue

This commit is contained in:
Username1548
2025-05-30 21:19:49 +07:00
parent 88bf79def4
commit 35fc032d31
2 changed files with 5 additions and 2 deletions

View File

@@ -1,3 +1,5 @@
import 'package:eatvio_app/features/feed/models/feed_blog_post_model.dart';
sealed class BaseNotificationModel {
abstract final NotificationType type;
abstract final bool isRead;
@@ -127,7 +129,7 @@ class ConsultantLeftCommentNotification implements BaseNotificationModel {
factory ConsultantLeftCommentNotification.fromJson(Map<String, dynamic> json, NotificationType type, {bool? isRead}) {
return ConsultantLeftCommentNotification(
type: type,
date: json['diary_date'],
date: parseDate(json['diary_date']),
isRead: isRead ?? false,
);
}