dde66521f6
- Introduced a .dockerignore file to optimize Docker builds by excluding unnecessary files. - Updated the Dockerfile to use a Flutter base image, enabling web builds for the application. - Added new data models for `Lot` and `OrganizationAddress` to represent tender details more accurately. - Enhanced the `Organization` model to include `companyId` and a nested `address` field. - Updated the `TenderData` model to include new fields such as `noticeTypeCode`, `formType`, and `lots`, reflecting the API response structure. - Regenerated necessary code for data models to ensure compatibility with the updated structures.
82 lines
3.4 KiB
Dart
82 lines
3.4 KiB
Dart
// 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?,
|
|
noticeTypeCode: json['notice_type_code'] as String?,
|
|
formType: json['form_type'] as String?,
|
|
noticeLanguageCode: json['notice_language_code'] as String?,
|
|
issueDate: unixTimestampFromJson(json['issue_date']),
|
|
issueTime: unixTimestampFromJson(json['issue_time']),
|
|
publicationDate: unixTimestampFromJson(json['publication_date']),
|
|
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: unixTimestampFromJson(json['tender_deadline']),
|
|
submissionDeadline: unixTimestampFromJson(json['submission_deadline']),
|
|
applicationDeadline: unixTimestampFromJson(json['application_deadline']),
|
|
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>,
|
|
),
|
|
lots:
|
|
(json['lots'] as List<dynamic>?)
|
|
?.map((e) => Lot.fromJson(e as Map<String, dynamic>))
|
|
.toList(),
|
|
officialLanguages:
|
|
(json['official_languages'] as List<dynamic>?)
|
|
?.map((e) => e as String)
|
|
.toList(),
|
|
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,
|
|
'notice_type_code': instance.noticeTypeCode,
|
|
'form_type': instance.formType,
|
|
'notice_language_code': instance.noticeLanguageCode,
|
|
'issue_date': instance.issueDate,
|
|
'issue_time': instance.issueTime,
|
|
'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,
|
|
'lots': instance.lots,
|
|
'official_languages': instance.officialLanguages,
|
|
'status': instance.status,
|
|
};
|