// ignore_for_file: invalid_annotation_target

import 'package:freezed_annotation/freezed_annotation.dart';

import '../error/error_model.dart';
import '../feedback_stats/feedback_stats.dart';

part 'feedback_stat_response.freezed.dart';
part 'feedback_stat_response.g.dart';

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

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