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

@@ -485,6 +485,18 @@ class NotificationsService {
isRead: readDate != null,
createdAt: createdAt,
),
NotificationType.clientPlanPaymentRequired => ClientPlanPaymentRequiredNotification.fromJson(
(notificationJson['data'] as Map<String, dynamic>?) ?? notificationJson,
type,
isRead: readDate != null,
createdAt: createdAt,
),
NotificationType.consultantPlanStartDateSet => ConsultantPlanStartDateSetNotification.fromJson(
(notificationJson['data'] as Map<String, dynamic>?) ?? notificationJson,
type,
isRead: readDate != null,
createdAt: createdAt,
),
NotificationType.unknown => UnknownNotification(type: type, createdAt: parseDate(createdAt)),
};
} catch (e) {