forked from eatvio/eatvio_app
feat(notifications): support payment-required and start-date-set types (#3054)
This commit is contained in:
@@ -344,6 +344,18 @@ class NotificationsCubit extends Cubit<NotificationsState> {
|
||||
isRead: isRead,
|
||||
createdAt: createdAt,
|
||||
),
|
||||
NotificationType.clientPlanPaymentRequired => ClientPlanPaymentRequiredNotification.fromJson(
|
||||
notificationJson,
|
||||
type,
|
||||
isRead: isRead,
|
||||
createdAt: createdAt,
|
||||
),
|
||||
NotificationType.consultantPlanStartDateSet => ConsultantPlanStartDateSetNotification.fromJson(
|
||||
notificationJson,
|
||||
type,
|
||||
isRead: isRead,
|
||||
createdAt: createdAt,
|
||||
),
|
||||
NotificationType.unknown => UnknownNotification(type: type, createdAt: parseDate(createdAt ?? jsonEncode(notificationJson))),
|
||||
};
|
||||
} catch (e, st) {
|
||||
|
||||
Reference in New Issue
Block a user