forked from eatvio/eatvio_app
25 lines
752 B
Dart
25 lines
752 B
Dart
import 'package:freezed_annotation/freezed_annotation.dart';
|
|
|
|
part 'notification_model.freezed.dart';
|
|
part 'notification_model.g.dart';
|
|
|
|
@freezed
|
|
abstract 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,
|
|
|
|
} |