// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'tender_data.dart';

// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************

_TenderData _$TenderDataFromJson(Map<String, dynamic> json) => _TenderData(
  success: json['success'] as bool?,
  message: json['message'] as String?,
  id: json['id'] as String?,
  tenderId: json['tender_id'] as String?,
  noticePublicationId: json['notice_publication_id'] as String?,
  publicationDate: (json['publication_date'] as num?)?.toInt(),
  title: json['title'] as String?,
  description: json['description'] as String?,
  procurementTypeCode: json['procurement_type_code'] as String?,
  procedureCode: json['procedure_code'] as String?,
  estimatedValue: (json['estimated_value'] as num?)?.toInt(),
  currency: json['currency'] as String?,
  duration: json['duration'] as String?,
  tenderDeadline: (json['tender_deadline'] as num?)?.toInt(),
  submissionDeadline: (json['submission_deadline'] as num?)?.toInt(),
  applicationDeadline: (json['application_deadline'] as num?)?.toInt(),
  submissionUrl: json['submission_url'] as String?,
  countryCode: json['country_code'] as String?,
  durationUnit: json['duration_unit'] as String?,
  buyerOrganization:
      json['buyer_organization'] == null
          ? null
          : Organization.fromJson(
            json['buyer_organization'] as Map<String, dynamic>,
          ),
  status: json['status'] as String?,
);

Map<String, dynamic> _$TenderDataToJson(_TenderData instance) =>
    <String, dynamic>{
      'success': instance.success,
      'message': instance.message,
      'id': instance.id,
      'tender_id': instance.tenderId,
      'notice_publication_id': instance.noticePublicationId,
      'publication_date': instance.publicationDate,
      'title': instance.title,
      'description': instance.description,
      'procurement_type_code': instance.procurementTypeCode,
      'procedure_code': instance.procedureCode,
      'estimated_value': instance.estimatedValue,
      'currency': instance.currency,
      'duration': instance.duration,
      'tender_deadline': instance.tenderDeadline,
      'submission_deadline': instance.submissionDeadline,
      'application_deadline': instance.applicationDeadline,
      'submission_url': instance.submissionUrl,
      'country_code': instance.countryCode,
      'duration_unit': instance.durationUnit,
      'buyer_organization': instance.buyerOrganization,
      'status': instance.status,
    };
