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:
@@ -7,7 +7,20 @@ part of 'organization.dart';
|
||||
// **************************************************************************
|
||||
|
||||
_Organization _$OrganizationFromJson(Map<String, dynamic> json) =>
|
||||
_Organization(name: json['name'] as String?);
|
||||
_Organization(
|
||||
name: json['name'] as String?,
|
||||
companyId: json['company_id'] as String?,
|
||||
address:
|
||||
json['address'] == null
|
||||
? null
|
||||
: OrganizationAddress.fromJson(
|
||||
json['address'] as Map<String, dynamic>,
|
||||
),
|
||||
);
|
||||
|
||||
Map<String, dynamic> _$OrganizationToJson(_Organization instance) =>
|
||||
<String, dynamic>{'name': instance.name};
|
||||
<String, dynamic>{
|
||||
'name': instance.name,
|
||||
'company_id': instance.companyId,
|
||||
'address': instance.address,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user