feat(notifications): support payment-required and start-date-set types (#3054)

This commit is contained in:
2026-11-24 09:18:59 +03:00
parent cf5c42ff4b
commit c6915a0d94
7 changed files with 289 additions and 0 deletions

View File

@@ -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) {