import 'package:freezed_annotation/freezed_annotation.dart';

part 'kill_registration.freezed.dart';
part 'kill_registration.g.dart';

@freezed
abstract class KillRegistrationRequest with _$KillRegistrationRequest {
  const factory KillRegistrationRequest({
    bool? approvedPrice,
    bool? market,
    String? killReqKey,
    String? operatorKey,
    String? poultryHatchingKey,
    int? quantity,
    String? sendDate,
    String? chickenBreed,
    @JsonKey(name: "Index_weight") double? indexWeight,
    String? losses,
    List<dynamic>? auctionList,
    bool? freezing,
    bool? export,
    bool? cash,
    bool? credit,
    List<dynamic>? killHouseList,
    String? role,
    String? poultryKey,
    int? amount,
    String? financialOperation,
    bool? freeSaleInProvince,
    String? confirmPoultryMobile,
  }) = _KillRegistrationRequest;

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