// ignore_for_file: invalid_annotation_target
import 'package:freezed_annotation/freezed_annotation.dart';
import '../tender_data/tender_data.dart';

part 'liked_tender_feedback.freezed.dart';
part 'liked_tender_feedback.g.dart';

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

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