// ignore_for_file: invalid_annotation_target

import 'package:freezed_annotation/freezed_annotation.dart';

part 'company_profile_data.freezed.dart';
part 'company_profile_data.g.dart';

@freezed
abstract class CompanyProfileData with _$CompanyProfileData {
  const factory CompanyProfileData({
    required String? id,
    required String? name,
    @JsonKey(name: 'registration_number') required String? registrationNumber,
    required String? industry,
    @JsonKey(name: 'founded_year') required int? foundedYear,
    @JsonKey(name: 'created_at') required int? createdAt,
  }) = _CompanyProfileData;

  factory CompanyProfileData.fromJson(Map<String, dynamic> json) =>
      _$CompanyProfileDataFromJson(json);
}
