// ignore_for_file: invalid_annotation_target

import 'package:freezed_annotation/freezed_annotation.dart';

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

part 'tender_approvals_data.freezed.dart';
part 'tender_approvals_data.g.dart';

@freezed
abstract class TenderApprovalsData with _$TenderApprovalsData {
  const factory TenderApprovalsData({
    required String? id,
    required String status,
    @JsonKey(name: 'tender_id') required String? tenderId,
    @JsonKey(name: 'company_id') required String? companyId,
    @JsonKey(name: 'submission_mode') required String? submissionMode,
    @JsonKey(name: 'created_at') required int? createdAt,
    required TenderData? tender,
  }) = _TenderApprovalsData;

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