forked from eatvio/eatvio_app
fix(notifications): fixed consultantLeftComment notifications issue
This commit is contained in:
@@ -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,
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user