// ignore_for_file: invalid_annotation_target import 'package:freezed_annotation/freezed_annotation.dart'; import 'package:tm_app/data/services/model/organization/organization_address.dart'; part 'organization.freezed.dart'; part 'organization.g.dart'; // AI-NOTE (for PR reviewer): Added company_id and a nested address // (OrganizationAddress) to surface buyer details on the tender-details page. // A dedicated OrganizationAddress type is used instead of the existing // `Address` model because the buyer address shape differs (city_name + // country_code only) and is unrelated to the user-profile Address. @freezed abstract class Organization with _$Organization { const factory Organization({ required String? name, @JsonKey(name: 'company_id') required String? companyId, required OrganizationAddress? address, }) = _Organization; factory Organization.fromJson(Map json) => _$OrganizationFromJson(json); }