// ignore_for_file: invalid_annotation_target

import 'package:freezed_annotation/freezed_annotation.dart';

import '../company_profile_data/company_profile_data.dart';
import '../error/error_model.dart';

part 'company_profile_response.freezed.dart';
part 'company_profile_response.g.dart';

@freezed
abstract class CompanyProfileResponse with _$CompanyProfileResponse {
  const factory CompanyProfileResponse({
    required String? message,
    required bool? success,
    required ErrorModel? error,
    required CompanyProfileData? data,
  }) = _CompanyProfileResponse;

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