// ignore_for_file: invalid_annotation_target

import 'package:freezed_annotation/freezed_annotation.dart';
import 'package:tm_app/data/services/model/error/error_model.dart';
import 'package:tm_app/data/services/model/notification_data/notification_data.dart';

part 'notification_response_model.freezed.dart';
part 'notification_response_model.g.dart';

@freezed
abstract class NotificationResponseModel with _$NotificationResponseModel {
  const factory NotificationResponseModel({
    required bool? success,
    required String? message,
    required NotificationData? data,
    required ErrorModel? error,
  }) = _NotificationResponseModel;

  factory NotificationResponseModel.fromJson(Map<String, Object?> json) =>
      _$NotificationResponseModelFromJson(json);
}
