feat(diary): consultant comments

This commit is contained in:
Username1548
2025-04-24 04:20:24 +07:00
parent 267cc38a0b
commit 3754d047fb
102 changed files with 6021 additions and 494 deletions

View File

@@ -0,0 +1,25 @@
import 'package:freezed_annotation/freezed_annotation.dart';
part 'notification_model.freezed.dart';
part 'notification_model.g.dart';
@freezed
class NotificationModel with _$NotificationModel {
factory NotificationModel({
required NotificationType type
}) = _NotificationModel;
factory NotificationModel.fromJson(Map<String, dynamic> json) => _$NotificationModelFromJson(json);
}
enum NotificationType {
@JsonValue('App\\Notifications\\UserSubscribedNotification')
userSubscribedNotification,
@JsonValue('App\\Notifications\\Plan\\PlanSubscriptionStartedToAuthor')
planSubscriptionStartedToAuthor,
@JsonValue('App\\Notifications\\Plan\\PlanSubscriptionCanceledToAuthor')
planSubscriptionCanceledToAuthor,
}