Add Docker support and enhance data models for tender details
- 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.
This commit is contained in:
@@ -12,6 +12,11 @@ _TenderData _$TenderDataFromJson(Map<String, dynamic> json) => _TenderData(
|
||||
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?,
|
||||
@@ -32,6 +37,14 @@ _TenderData _$TenderDataFromJson(Map<String, dynamic> json) => _TenderData(
|
||||
: 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?,
|
||||
);
|
||||
|
||||
@@ -42,6 +55,11 @@ Map<String, dynamic> _$TenderDataToJson(_TenderData instance) =>
|
||||
'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,
|
||||
@@ -57,5 +75,7 @@ Map<String, dynamic> _$TenderDataToJson(_TenderData instance) =>
|
||||
'country_code': instance.countryCode,
|
||||
'duration_unit': instance.durationUnit,
|
||||
'buyer_organization': instance.buyerOrganization,
|
||||
'lots': instance.lots,
|
||||
'official_languages': instance.officialLanguages,
|
||||
'status': instance.status,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user