// ignore_for_file: invalid_annotation_target

import 'package:freezed_annotation/freezed_annotation.dart';

import '../error/error_model.dart';
import '../feedback_data/feedback_data.dart';
import '../meta/meta.dart';

part 'feedback_response.freezed.dart';
part 'feedback_response.g.dart';

@freezed
abstract class FeedbackResponse with _$FeedbackResponse {
  const factory FeedbackResponse({
    @JsonKey(name: 'meta') required Meta? meta,
    @JsonKey(name: 'data') required FeedbackData? data,
    @JsonKey(name: 'error') required ErrorModel? error,
    required String? message,
    required bool? success,
  }) = _FeedbackResponse;

  factory FeedbackResponse.fromJson(Map<String, dynamic> json) =>
      _$FeedbackResponseFromJson(json);
}
