// ignore_for_file: invalid_annotation_target

import 'package:freezed_annotation/freezed_annotation.dart';

import '../tender_data/tender_data.dart';

part 'feedback_data.freezed.dart';
part 'feedback_data.g.dart';

@freezed
abstract class FeedbackData with _$FeedbackData {
  const factory FeedbackData({
    @JsonKey(name: 'company_id') required String? companyId,
    @JsonKey(name: 'created_at') required int? createdAt,
    @JsonKey(name: 'customer_id') required String? customerId,
    @JsonKey(name: 'feedback_type') required String? feedbackType,
    @JsonKey(name: 'id') required String? id,
    @JsonKey(name: 'tender_id') required String? tenderId,
    @JsonKey(name: 'tender') required TenderData? tender,
    @JsonKey(name: 'updated_at') required int? updatedAt,
  }) = _FeedbackData;

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