// coverage:ignore-file
// GENERATED CODE - DO NOT MODIFY BY HAND
// ignore_for_file: type=lint
// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark

part of 'license_request_dto.dart';

// **************************************************************************
// FreezedGenerator
// **************************************************************************

T _$identity<T>(T value) => value;

final _privateConstructorUsedError = UnsupportedError(
    'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models');

CreateLicenseRequest _$CreateLicenseRequestFromJson(Map<String, dynamic> json) {
  return _CreateLicenseRequest.fromJson(json);
}

/// @nodoc
mixin _$CreateLicenseRequest {
  @JsonKey(name: 'license_key')
  String get licenseKey => throw _privateConstructorUsedError;
  @JsonKey(name: 'product_name')
  String? get productName => throw _privateConstructorUsedError;
  String? get vendor => throw _privateConstructorUsedError;
  @JsonKey(name: 'license_type')
  String? get licenseType => throw _privateConstructorUsedError;
  @JsonKey(name: 'user_count')
  int? get userCount => throw _privateConstructorUsedError;
  @JsonKey(name: 'purchase_date', toJson: _dateToJson, fromJson: _dateFromJson)
  DateTime? get purchaseDate => throw _privateConstructorUsedError;
  @JsonKey(name: 'expiry_date', toJson: _dateToJson, fromJson: _dateFromJson)
  DateTime? get expiryDate => throw _privateConstructorUsedError;
  @JsonKey(name: 'purchase_price')
  double? get purchasePrice => throw _privateConstructorUsedError;
  @JsonKey(name: 'company_id')
  int? get companyId => throw _privateConstructorUsedError;
  @JsonKey(name: 'branch_id')
  int? get branchId => throw _privateConstructorUsedError;
  String? get remark => throw _privateConstructorUsedError;

  /// Serializes this CreateLicenseRequest to a JSON map.
  Map<String, dynamic> toJson() => throw _privateConstructorUsedError;

  /// Create a copy of CreateLicenseRequest
  /// with the given fields replaced by the non-null parameter values.
  @JsonKey(includeFromJson: false, includeToJson: false)
  $CreateLicenseRequestCopyWith<CreateLicenseRequest> get copyWith =>
      throw _privateConstructorUsedError;
}

/// @nodoc
abstract class $CreateLicenseRequestCopyWith<$Res> {
  factory $CreateLicenseRequestCopyWith(CreateLicenseRequest value,
          $Res Function(CreateLicenseRequest) then) =
      _$CreateLicenseRequestCopyWithImpl<$Res, CreateLicenseRequest>;
  @useResult
  $Res call(
      {@JsonKey(name: 'license_key') String licenseKey,
      @JsonKey(name: 'product_name') String? productName,
      String? vendor,
      @JsonKey(name: 'license_type') String? licenseType,
      @JsonKey(name: 'user_count') int? userCount,
      @JsonKey(
          name: 'purchase_date', toJson: _dateToJson, fromJson: _dateFromJson)
      DateTime? purchaseDate,
      @JsonKey(
          name: 'expiry_date', toJson: _dateToJson, fromJson: _dateFromJson)
      DateTime? expiryDate,
      @JsonKey(name: 'purchase_price') double? purchasePrice,
      @JsonKey(name: 'company_id') int? companyId,
      @JsonKey(name: 'branch_id') int? branchId,
      String? remark});
}

/// @nodoc
class _$CreateLicenseRequestCopyWithImpl<$Res,
        $Val extends CreateLicenseRequest>
    implements $CreateLicenseRequestCopyWith<$Res> {
  _$CreateLicenseRequestCopyWithImpl(this._value, this._then);

  // ignore: unused_field
  final $Val _value;
  // ignore: unused_field
  final $Res Function($Val) _then;

  /// Create a copy of CreateLicenseRequest
  /// with the given fields replaced by the non-null parameter values.
  @pragma('vm:prefer-inline')
  @override
  $Res call({
    Object? licenseKey = null,
    Object? productName = freezed,
    Object? vendor = freezed,
    Object? licenseType = freezed,
    Object? userCount = freezed,
    Object? purchaseDate = freezed,
    Object? expiryDate = freezed,
    Object? purchasePrice = freezed,
    Object? companyId = freezed,
    Object? branchId = freezed,
    Object? remark = freezed,
  }) {
    return _then(_value.copyWith(
      licenseKey: null == licenseKey
          ? _value.licenseKey
          : licenseKey // ignore: cast_nullable_to_non_nullable
              as String,
      productName: freezed == productName
          ? _value.productName
          : productName // ignore: cast_nullable_to_non_nullable
              as String?,
      vendor: freezed == vendor
          ? _value.vendor
          : vendor // ignore: cast_nullable_to_non_nullable
              as String?,
      licenseType: freezed == licenseType
          ? _value.licenseType
          : licenseType // ignore: cast_nullable_to_non_nullable
              as String?,
      userCount: freezed == userCount
          ? _value.userCount
          : userCount // ignore: cast_nullable_to_non_nullable
              as int?,
      purchaseDate: freezed == purchaseDate
          ? _value.purchaseDate
          : purchaseDate // ignore: cast_nullable_to_non_nullable
              as DateTime?,
      expiryDate: freezed == expiryDate
          ? _value.expiryDate
          : expiryDate // ignore: cast_nullable_to_non_nullable
              as DateTime?,
      purchasePrice: freezed == purchasePrice
          ? _value.purchasePrice
          : purchasePrice // ignore: cast_nullable_to_non_nullable
              as double?,
      companyId: freezed == companyId
          ? _value.companyId
          : companyId // ignore: cast_nullable_to_non_nullable
              as int?,
      branchId: freezed == branchId
          ? _value.branchId
          : branchId // ignore: cast_nullable_to_non_nullable
              as int?,
      remark: freezed == remark
          ? _value.remark
          : remark // ignore: cast_nullable_to_non_nullable
              as String?,
    ) as $Val);
  }
}

/// @nodoc
abstract class _$$CreateLicenseRequestImplCopyWith<$Res>
    implements $CreateLicenseRequestCopyWith<$Res> {
  factory _$$CreateLicenseRequestImplCopyWith(_$CreateLicenseRequestImpl value,
          $Res Function(_$CreateLicenseRequestImpl) then) =
      __$$CreateLicenseRequestImplCopyWithImpl<$Res>;
  @override
  @useResult
  $Res call(
      {@JsonKey(name: 'license_key') String licenseKey,
      @JsonKey(name: 'product_name') String? productName,
      String? vendor,
      @JsonKey(name: 'license_type') String? licenseType,
      @JsonKey(name: 'user_count') int? userCount,
      @JsonKey(
          name: 'purchase_date', toJson: _dateToJson, fromJson: _dateFromJson)
      DateTime? purchaseDate,
      @JsonKey(
          name: 'expiry_date', toJson: _dateToJson, fromJson: _dateFromJson)
      DateTime? expiryDate,
      @JsonKey(name: 'purchase_price') double? purchasePrice,
      @JsonKey(name: 'company_id') int? companyId,
      @JsonKey(name: 'branch_id') int? branchId,
      String? remark});
}

/// @nodoc
class __$$CreateLicenseRequestImplCopyWithImpl<$Res>
    extends _$CreateLicenseRequestCopyWithImpl<$Res, _$CreateLicenseRequestImpl>
    implements _$$CreateLicenseRequestImplCopyWith<$Res> {
  __$$CreateLicenseRequestImplCopyWithImpl(_$CreateLicenseRequestImpl _value,
      $Res Function(_$CreateLicenseRequestImpl) _then)
      : super(_value, _then);

  /// Create a copy of CreateLicenseRequest
  /// with the given fields replaced by the non-null parameter values.
  @pragma('vm:prefer-inline')
  @override
  $Res call({
    Object? licenseKey = null,
    Object? productName = freezed,
    Object? vendor = freezed,
    Object? licenseType = freezed,
    Object? userCount = freezed,
    Object? purchaseDate = freezed,
    Object? expiryDate = freezed,
    Object? purchasePrice = freezed,
    Object? companyId = freezed,
    Object? branchId = freezed,
    Object? remark = freezed,
  }) {
    return _then(_$CreateLicenseRequestImpl(
      licenseKey: null == licenseKey
          ? _value.licenseKey
          : licenseKey // ignore: cast_nullable_to_non_nullable
              as String,
      productName: freezed == productName
          ? _value.productName
          : productName // ignore: cast_nullable_to_non_nullable
              as String?,
      vendor: freezed == vendor
          ? _value.vendor
          : vendor // ignore: cast_nullable_to_non_nullable
              as String?,
      licenseType: freezed == licenseType
          ? _value.licenseType
          : licenseType // ignore: cast_nullable_to_non_nullable
              as String?,
      userCount: freezed == userCount
          ? _value.userCount
          : userCount // ignore: cast_nullable_to_non_nullable
              as int?,
      purchaseDate: freezed == purchaseDate
          ? _value.purchaseDate
          : purchaseDate // ignore: cast_nullable_to_non_nullable
              as DateTime?,
      expiryDate: freezed == expiryDate
          ? _value.expiryDate
          : expiryDate // ignore: cast_nullable_to_non_nullable
              as DateTime?,
      purchasePrice: freezed == purchasePrice
          ? _value.purchasePrice
          : purchasePrice // ignore: cast_nullable_to_non_nullable
              as double?,
      companyId: freezed == companyId
          ? _value.companyId
          : companyId // ignore: cast_nullable_to_non_nullable
              as int?,
      branchId: freezed == branchId
          ? _value.branchId
          : branchId // ignore: cast_nullable_to_non_nullable
              as int?,
      remark: freezed == remark
          ? _value.remark
          : remark // ignore: cast_nullable_to_non_nullable
              as String?,
    ));
  }
}

/// @nodoc
@JsonSerializable()
class _$CreateLicenseRequestImpl implements _CreateLicenseRequest {
  const _$CreateLicenseRequestImpl(
      {@JsonKey(name: 'license_key') required this.licenseKey,
      @JsonKey(name: 'product_name') this.productName,
      this.vendor,
      @JsonKey(name: 'license_type') this.licenseType,
      @JsonKey(name: 'user_count') this.userCount,
      @JsonKey(
          name: 'purchase_date', toJson: _dateToJson, fromJson: _dateFromJson)
      this.purchaseDate,
      @JsonKey(
          name: 'expiry_date', toJson: _dateToJson, fromJson: _dateFromJson)
      this.expiryDate,
      @JsonKey(name: 'purchase_price') this.purchasePrice,
      @JsonKey(name: 'company_id') this.companyId,
      @JsonKey(name: 'branch_id') this.branchId,
      this.remark});

  factory _$CreateLicenseRequestImpl.fromJson(Map<String, dynamic> json) =>
      _$$CreateLicenseRequestImplFromJson(json);

  @override
  @JsonKey(name: 'license_key')
  final String licenseKey;
  @override
  @JsonKey(name: 'product_name')
  final String? productName;
  @override
  final String? vendor;
  @override
  @JsonKey(name: 'license_type')
  final String? licenseType;
  @override
  @JsonKey(name: 'user_count')
  final int? userCount;
  @override
  @JsonKey(name: 'purchase_date', toJson: _dateToJson, fromJson: _dateFromJson)
  final DateTime? purchaseDate;
  @override
  @JsonKey(name: 'expiry_date', toJson: _dateToJson, fromJson: _dateFromJson)
  final DateTime? expiryDate;
  @override
  @JsonKey(name: 'purchase_price')
  final double? purchasePrice;
  @override
  @JsonKey(name: 'company_id')
  final int? companyId;
  @override
  @JsonKey(name: 'branch_id')
  final int? branchId;
  @override
  final String? remark;

  @override
  String toString() {
    return 'CreateLicenseRequest(licenseKey: $licenseKey, productName: $productName, vendor: $vendor, licenseType: $licenseType, userCount: $userCount, purchaseDate: $purchaseDate, expiryDate: $expiryDate, purchasePrice: $purchasePrice, companyId: $companyId, branchId: $branchId, remark: $remark)';
  }

  @override
  bool operator ==(Object other) {
    return identical(this, other) ||
        (other.runtimeType == runtimeType &&
            other is _$CreateLicenseRequestImpl &&
            (identical(other.licenseKey, licenseKey) ||
                other.licenseKey == licenseKey) &&
            (identical(other.productName, productName) ||
                other.productName == productName) &&
            (identical(other.vendor, vendor) || other.vendor == vendor) &&
            (identical(other.licenseType, licenseType) ||
                other.licenseType == licenseType) &&
            (identical(other.userCount, userCount) ||
                other.userCount == userCount) &&
            (identical(other.purchaseDate, purchaseDate) ||
                other.purchaseDate == purchaseDate) &&
            (identical(other.expiryDate, expiryDate) ||
                other.expiryDate == expiryDate) &&
            (identical(other.purchasePrice, purchasePrice) ||
                other.purchasePrice == purchasePrice) &&
            (identical(other.companyId, companyId) ||
                other.companyId == companyId) &&
            (identical(other.branchId, branchId) ||
                other.branchId == branchId) &&
            (identical(other.remark, remark) || other.remark == remark));
  }

  @JsonKey(includeFromJson: false, includeToJson: false)
  @override
  int get hashCode => Object.hash(
      runtimeType,
      licenseKey,
      productName,
      vendor,
      licenseType,
      userCount,
      purchaseDate,
      expiryDate,
      purchasePrice,
      companyId,
      branchId,
      remark);

  /// Create a copy of CreateLicenseRequest
  /// with the given fields replaced by the non-null parameter values.
  @JsonKey(includeFromJson: false, includeToJson: false)
  @override
  @pragma('vm:prefer-inline')
  _$$CreateLicenseRequestImplCopyWith<_$CreateLicenseRequestImpl>
      get copyWith =>
          __$$CreateLicenseRequestImplCopyWithImpl<_$CreateLicenseRequestImpl>(
              this, _$identity);

  @override
  Map<String, dynamic> toJson() {
    return _$$CreateLicenseRequestImplToJson(
      this,
    );
  }
}

abstract class _CreateLicenseRequest implements CreateLicenseRequest {
  const factory _CreateLicenseRequest(
      {@JsonKey(name: 'license_key') required final String licenseKey,
      @JsonKey(name: 'product_name') final String? productName,
      final String? vendor,
      @JsonKey(name: 'license_type') final String? licenseType,
      @JsonKey(name: 'user_count') final int? userCount,
      @JsonKey(
          name: 'purchase_date', toJson: _dateToJson, fromJson: _dateFromJson)
      final DateTime? purchaseDate,
      @JsonKey(
          name: 'expiry_date', toJson: _dateToJson, fromJson: _dateFromJson)
      final DateTime? expiryDate,
      @JsonKey(name: 'purchase_price') final double? purchasePrice,
      @JsonKey(name: 'company_id') final int? companyId,
      @JsonKey(name: 'branch_id') final int? branchId,
      final String? remark}) = _$CreateLicenseRequestImpl;

  factory _CreateLicenseRequest.fromJson(Map<String, dynamic> json) =
      _$CreateLicenseRequestImpl.fromJson;

  @override
  @JsonKey(name: 'license_key')
  String get licenseKey;
  @override
  @JsonKey(name: 'product_name')
  String? get productName;
  @override
  String? get vendor;
  @override
  @JsonKey(name: 'license_type')
  String? get licenseType;
  @override
  @JsonKey(name: 'user_count')
  int? get userCount;
  @override
  @JsonKey(name: 'purchase_date', toJson: _dateToJson, fromJson: _dateFromJson)
  DateTime? get purchaseDate;
  @override
  @JsonKey(name: 'expiry_date', toJson: _dateToJson, fromJson: _dateFromJson)
  DateTime? get expiryDate;
  @override
  @JsonKey(name: 'purchase_price')
  double? get purchasePrice;
  @override
  @JsonKey(name: 'company_id')
  int? get companyId;
  @override
  @JsonKey(name: 'branch_id')
  int? get branchId;
  @override
  String? get remark;

  /// Create a copy of CreateLicenseRequest
  /// with the given fields replaced by the non-null parameter values.
  @override
  @JsonKey(includeFromJson: false, includeToJson: false)
  _$$CreateLicenseRequestImplCopyWith<_$CreateLicenseRequestImpl>
      get copyWith => throw _privateConstructorUsedError;
}

UpdateLicenseRequest _$UpdateLicenseRequestFromJson(Map<String, dynamic> json) {
  return _UpdateLicenseRequest.fromJson(json);
}

/// @nodoc
mixin _$UpdateLicenseRequest {
  @JsonKey(name: 'license_key')
  String? get licenseKey => throw _privateConstructorUsedError;
  @JsonKey(name: 'product_name')
  String? get productName => throw _privateConstructorUsedError;
  String? get vendor => throw _privateConstructorUsedError;
  @JsonKey(name: 'license_type')
  String? get licenseType => throw _privateConstructorUsedError;
  @JsonKey(name: 'user_count')
  int? get userCount => throw _privateConstructorUsedError;
  @JsonKey(name: 'purchase_date', toJson: _dateToJson, fromJson: _dateFromJson)
  DateTime? get purchaseDate => throw _privateConstructorUsedError;
  @JsonKey(name: 'expiry_date', toJson: _dateToJson, fromJson: _dateFromJson)
  DateTime? get expiryDate => throw _privateConstructorUsedError;
  @JsonKey(name: 'purchase_price')
  double? get purchasePrice => throw _privateConstructorUsedError;
  String? get remark => throw _privateConstructorUsedError;
  @JsonKey(name: 'is_active')
  bool? get isActive => throw _privateConstructorUsedError;

  /// Serializes this UpdateLicenseRequest to a JSON map.
  Map<String, dynamic> toJson() => throw _privateConstructorUsedError;

  /// Create a copy of UpdateLicenseRequest
  /// with the given fields replaced by the non-null parameter values.
  @JsonKey(includeFromJson: false, includeToJson: false)
  $UpdateLicenseRequestCopyWith<UpdateLicenseRequest> get copyWith =>
      throw _privateConstructorUsedError;
}

/// @nodoc
abstract class $UpdateLicenseRequestCopyWith<$Res> {
  factory $UpdateLicenseRequestCopyWith(UpdateLicenseRequest value,
          $Res Function(UpdateLicenseRequest) then) =
      _$UpdateLicenseRequestCopyWithImpl<$Res, UpdateLicenseRequest>;
  @useResult
  $Res call(
      {@JsonKey(name: 'license_key') String? licenseKey,
      @JsonKey(name: 'product_name') String? productName,
      String? vendor,
      @JsonKey(name: 'license_type') String? licenseType,
      @JsonKey(name: 'user_count') int? userCount,
      @JsonKey(
          name: 'purchase_date', toJson: _dateToJson, fromJson: _dateFromJson)
      DateTime? purchaseDate,
      @JsonKey(
          name: 'expiry_date', toJson: _dateToJson, fromJson: _dateFromJson)
      DateTime? expiryDate,
      @JsonKey(name: 'purchase_price') double? purchasePrice,
      String? remark,
      @JsonKey(name: 'is_active') bool? isActive});
}

/// @nodoc
class _$UpdateLicenseRequestCopyWithImpl<$Res,
        $Val extends UpdateLicenseRequest>
    implements $UpdateLicenseRequestCopyWith<$Res> {
  _$UpdateLicenseRequestCopyWithImpl(this._value, this._then);

  // ignore: unused_field
  final $Val _value;
  // ignore: unused_field
  final $Res Function($Val) _then;

  /// Create a copy of UpdateLicenseRequest
  /// with the given fields replaced by the non-null parameter values.
  @pragma('vm:prefer-inline')
  @override
  $Res call({
    Object? licenseKey = freezed,
    Object? productName = freezed,
    Object? vendor = freezed,
    Object? licenseType = freezed,
    Object? userCount = freezed,
    Object? purchaseDate = freezed,
    Object? expiryDate = freezed,
    Object? purchasePrice = freezed,
    Object? remark = freezed,
    Object? isActive = freezed,
  }) {
    return _then(_value.copyWith(
      licenseKey: freezed == licenseKey
          ? _value.licenseKey
          : licenseKey // ignore: cast_nullable_to_non_nullable
              as String?,
      productName: freezed == productName
          ? _value.productName
          : productName // ignore: cast_nullable_to_non_nullable
              as String?,
      vendor: freezed == vendor
          ? _value.vendor
          : vendor // ignore: cast_nullable_to_non_nullable
              as String?,
      licenseType: freezed == licenseType
          ? _value.licenseType
          : licenseType // ignore: cast_nullable_to_non_nullable
              as String?,
      userCount: freezed == userCount
          ? _value.userCount
          : userCount // ignore: cast_nullable_to_non_nullable
              as int?,
      purchaseDate: freezed == purchaseDate
          ? _value.purchaseDate
          : purchaseDate // ignore: cast_nullable_to_non_nullable
              as DateTime?,
      expiryDate: freezed == expiryDate
          ? _value.expiryDate
          : expiryDate // ignore: cast_nullable_to_non_nullable
              as DateTime?,
      purchasePrice: freezed == purchasePrice
          ? _value.purchasePrice
          : purchasePrice // ignore: cast_nullable_to_non_nullable
              as double?,
      remark: freezed == remark
          ? _value.remark
          : remark // ignore: cast_nullable_to_non_nullable
              as String?,
      isActive: freezed == isActive
          ? _value.isActive
          : isActive // ignore: cast_nullable_to_non_nullable
              as bool?,
    ) as $Val);
  }
}

/// @nodoc
abstract class _$$UpdateLicenseRequestImplCopyWith<$Res>
    implements $UpdateLicenseRequestCopyWith<$Res> {
  factory _$$UpdateLicenseRequestImplCopyWith(_$UpdateLicenseRequestImpl value,
          $Res Function(_$UpdateLicenseRequestImpl) then) =
      __$$UpdateLicenseRequestImplCopyWithImpl<$Res>;
  @override
  @useResult
  $Res call(
      {@JsonKey(name: 'license_key') String? licenseKey,
      @JsonKey(name: 'product_name') String? productName,
      String? vendor,
      @JsonKey(name: 'license_type') String? licenseType,
      @JsonKey(name: 'user_count') int? userCount,
      @JsonKey(
          name: 'purchase_date', toJson: _dateToJson, fromJson: _dateFromJson)
      DateTime? purchaseDate,
      @JsonKey(
          name: 'expiry_date', toJson: _dateToJson, fromJson: _dateFromJson)
      DateTime? expiryDate,
      @JsonKey(name: 'purchase_price') double? purchasePrice,
      String? remark,
      @JsonKey(name: 'is_active') bool? isActive});
}

/// @nodoc
class __$$UpdateLicenseRequestImplCopyWithImpl<$Res>
    extends _$UpdateLicenseRequestCopyWithImpl<$Res, _$UpdateLicenseRequestImpl>
    implements _$$UpdateLicenseRequestImplCopyWith<$Res> {
  __$$UpdateLicenseRequestImplCopyWithImpl(_$UpdateLicenseRequestImpl _value,
      $Res Function(_$UpdateLicenseRequestImpl) _then)
      : super(_value, _then);

  /// Create a copy of UpdateLicenseRequest
  /// with the given fields replaced by the non-null parameter values.
  @pragma('vm:prefer-inline')
  @override
  $Res call({
    Object? licenseKey = freezed,
    Object? productName = freezed,
    Object? vendor = freezed,
    Object? licenseType = freezed,
    Object? userCount = freezed,
    Object? purchaseDate = freezed,
    Object? expiryDate = freezed,
    Object? purchasePrice = freezed,
    Object? remark = freezed,
    Object? isActive = freezed,
  }) {
    return _then(_$UpdateLicenseRequestImpl(
      licenseKey: freezed == licenseKey
          ? _value.licenseKey
          : licenseKey // ignore: cast_nullable_to_non_nullable
              as String?,
      productName: freezed == productName
          ? _value.productName
          : productName // ignore: cast_nullable_to_non_nullable
              as String?,
      vendor: freezed == vendor
          ? _value.vendor
          : vendor // ignore: cast_nullable_to_non_nullable
              as String?,
      licenseType: freezed == licenseType
          ? _value.licenseType
          : licenseType // ignore: cast_nullable_to_non_nullable
              as String?,
      userCount: freezed == userCount
          ? _value.userCount
          : userCount // ignore: cast_nullable_to_non_nullable
              as int?,
      purchaseDate: freezed == purchaseDate
          ? _value.purchaseDate
          : purchaseDate // ignore: cast_nullable_to_non_nullable
              as DateTime?,
      expiryDate: freezed == expiryDate
          ? _value.expiryDate
          : expiryDate // ignore: cast_nullable_to_non_nullable
              as DateTime?,
      purchasePrice: freezed == purchasePrice
          ? _value.purchasePrice
          : purchasePrice // ignore: cast_nullable_to_non_nullable
              as double?,
      remark: freezed == remark
          ? _value.remark
          : remark // ignore: cast_nullable_to_non_nullable
              as String?,
      isActive: freezed == isActive
          ? _value.isActive
          : isActive // ignore: cast_nullable_to_non_nullable
              as bool?,
    ));
  }
}

/// @nodoc
@JsonSerializable()
class _$UpdateLicenseRequestImpl implements _UpdateLicenseRequest {
  const _$UpdateLicenseRequestImpl(
      {@JsonKey(name: 'license_key') this.licenseKey,
      @JsonKey(name: 'product_name') this.productName,
      this.vendor,
      @JsonKey(name: 'license_type') this.licenseType,
      @JsonKey(name: 'user_count') this.userCount,
      @JsonKey(
          name: 'purchase_date', toJson: _dateToJson, fromJson: _dateFromJson)
      this.purchaseDate,
      @JsonKey(
          name: 'expiry_date', toJson: _dateToJson, fromJson: _dateFromJson)
      this.expiryDate,
      @JsonKey(name: 'purchase_price') this.purchasePrice,
      this.remark,
      @JsonKey(name: 'is_active') this.isActive});

  factory _$UpdateLicenseRequestImpl.fromJson(Map<String, dynamic> json) =>
      _$$UpdateLicenseRequestImplFromJson(json);

  @override
  @JsonKey(name: 'license_key')
  final String? licenseKey;
  @override
  @JsonKey(name: 'product_name')
  final String? productName;
  @override
  final String? vendor;
  @override
  @JsonKey(name: 'license_type')
  final String? licenseType;
  @override
  @JsonKey(name: 'user_count')
  final int? userCount;
  @override
  @JsonKey(name: 'purchase_date', toJson: _dateToJson, fromJson: _dateFromJson)
  final DateTime? purchaseDate;
  @override
  @JsonKey(name: 'expiry_date', toJson: _dateToJson, fromJson: _dateFromJson)
  final DateTime? expiryDate;
  @override
  @JsonKey(name: 'purchase_price')
  final double? purchasePrice;
  @override
  final String? remark;
  @override
  @JsonKey(name: 'is_active')
  final bool? isActive;

  @override
  String toString() {
    return 'UpdateLicenseRequest(licenseKey: $licenseKey, productName: $productName, vendor: $vendor, licenseType: $licenseType, userCount: $userCount, purchaseDate: $purchaseDate, expiryDate: $expiryDate, purchasePrice: $purchasePrice, remark: $remark, isActive: $isActive)';
  }

  @override
  bool operator ==(Object other) {
    return identical(this, other) ||
        (other.runtimeType == runtimeType &&
            other is _$UpdateLicenseRequestImpl &&
            (identical(other.licenseKey, licenseKey) ||
                other.licenseKey == licenseKey) &&
            (identical(other.productName, productName) ||
                other.productName == productName) &&
            (identical(other.vendor, vendor) || other.vendor == vendor) &&
            (identical(other.licenseType, licenseType) ||
                other.licenseType == licenseType) &&
            (identical(other.userCount, userCount) ||
                other.userCount == userCount) &&
            (identical(other.purchaseDate, purchaseDate) ||
                other.purchaseDate == purchaseDate) &&
            (identical(other.expiryDate, expiryDate) ||
                other.expiryDate == expiryDate) &&
            (identical(other.purchasePrice, purchasePrice) ||
                other.purchasePrice == purchasePrice) &&
            (identical(other.remark, remark) || other.remark == remark) &&
            (identical(other.isActive, isActive) ||
                other.isActive == isActive));
  }

  @JsonKey(includeFromJson: false, includeToJson: false)
  @override
  int get hashCode => Object.hash(
      runtimeType,
      licenseKey,
      productName,
      vendor,
      licenseType,
      userCount,
      purchaseDate,
      expiryDate,
      purchasePrice,
      remark,
      isActive);

  /// Create a copy of UpdateLicenseRequest
  /// with the given fields replaced by the non-null parameter values.
  @JsonKey(includeFromJson: false, includeToJson: false)
  @override
  @pragma('vm:prefer-inline')
  _$$UpdateLicenseRequestImplCopyWith<_$UpdateLicenseRequestImpl>
      get copyWith =>
          __$$UpdateLicenseRequestImplCopyWithImpl<_$UpdateLicenseRequestImpl>(
              this, _$identity);

  @override
  Map<String, dynamic> toJson() {
    return _$$UpdateLicenseRequestImplToJson(
      this,
    );
  }
}

abstract class _UpdateLicenseRequest implements UpdateLicenseRequest {
  const factory _UpdateLicenseRequest(
      {@JsonKey(name: 'license_key') final String? licenseKey,
      @JsonKey(name: 'product_name') final String? productName,
      final String? vendor,
      @JsonKey(name: 'license_type') final String? licenseType,
      @JsonKey(name: 'user_count') final int? userCount,
      @JsonKey(
          name: 'purchase_date', toJson: _dateToJson, fromJson: _dateFromJson)
      final DateTime? purchaseDate,
      @JsonKey(
          name: 'expiry_date', toJson: _dateToJson, fromJson: _dateFromJson)
      final DateTime? expiryDate,
      @JsonKey(name: 'purchase_price') final double? purchasePrice,
      final String? remark,
      @JsonKey(name: 'is_active')
      final bool? isActive}) = _$UpdateLicenseRequestImpl;

  factory _UpdateLicenseRequest.fromJson(Map<String, dynamic> json) =
      _$UpdateLicenseRequestImpl.fromJson;

  @override
  @JsonKey(name: 'license_key')
  String? get licenseKey;
  @override
  @JsonKey(name: 'product_name')
  String? get productName;
  @override
  String? get vendor;
  @override
  @JsonKey(name: 'license_type')
  String? get licenseType;
  @override
  @JsonKey(name: 'user_count')
  int? get userCount;
  @override
  @JsonKey(name: 'purchase_date', toJson: _dateToJson, fromJson: _dateFromJson)
  DateTime? get purchaseDate;
  @override
  @JsonKey(name: 'expiry_date', toJson: _dateToJson, fromJson: _dateFromJson)
  DateTime? get expiryDate;
  @override
  @JsonKey(name: 'purchase_price')
  double? get purchasePrice;
  @override
  String? get remark;
  @override
  @JsonKey(name: 'is_active')
  bool? get isActive;

  /// Create a copy of UpdateLicenseRequest
  /// with the given fields replaced by the non-null parameter values.
  @override
  @JsonKey(includeFromJson: false, includeToJson: false)
  _$$UpdateLicenseRequestImplCopyWith<_$UpdateLicenseRequestImpl>
      get copyWith => throw _privateConstructorUsedError;
}

AssignLicenseRequest _$AssignLicenseRequestFromJson(Map<String, dynamic> json) {
  return _AssignLicenseRequest.fromJson(json);
}

/// @nodoc
mixin _$AssignLicenseRequest {
  @JsonKey(name: 'user_id')
  int get userId => throw _privateConstructorUsedError;

  /// Serializes this AssignLicenseRequest to a JSON map.
  Map<String, dynamic> toJson() => throw _privateConstructorUsedError;

  /// Create a copy of AssignLicenseRequest
  /// with the given fields replaced by the non-null parameter values.
  @JsonKey(includeFromJson: false, includeToJson: false)
  $AssignLicenseRequestCopyWith<AssignLicenseRequest> get copyWith =>
      throw _privateConstructorUsedError;
}

/// @nodoc
abstract class $AssignLicenseRequestCopyWith<$Res> {
  factory $AssignLicenseRequestCopyWith(AssignLicenseRequest value,
          $Res Function(AssignLicenseRequest) then) =
      _$AssignLicenseRequestCopyWithImpl<$Res, AssignLicenseRequest>;
  @useResult
  $Res call({@JsonKey(name: 'user_id') int userId});
}

/// @nodoc
class _$AssignLicenseRequestCopyWithImpl<$Res,
        $Val extends AssignLicenseRequest>
    implements $AssignLicenseRequestCopyWith<$Res> {
  _$AssignLicenseRequestCopyWithImpl(this._value, this._then);

  // ignore: unused_field
  final $Val _value;
  // ignore: unused_field
  final $Res Function($Val) _then;

  /// Create a copy of AssignLicenseRequest
  /// with the given fields replaced by the non-null parameter values.
  @pragma('vm:prefer-inline')
  @override
  $Res call({
    Object? userId = null,
  }) {
    return _then(_value.copyWith(
      userId: null == userId
          ? _value.userId
          : userId // ignore: cast_nullable_to_non_nullable
              as int,
    ) as $Val);
  }
}

/// @nodoc
abstract class _$$AssignLicenseRequestImplCopyWith<$Res>
    implements $AssignLicenseRequestCopyWith<$Res> {
  factory _$$AssignLicenseRequestImplCopyWith(_$AssignLicenseRequestImpl value,
          $Res Function(_$AssignLicenseRequestImpl) then) =
      __$$AssignLicenseRequestImplCopyWithImpl<$Res>;
  @override
  @useResult
  $Res call({@JsonKey(name: 'user_id') int userId});
}

/// @nodoc
class __$$AssignLicenseRequestImplCopyWithImpl<$Res>
    extends _$AssignLicenseRequestCopyWithImpl<$Res, _$AssignLicenseRequestImpl>
    implements _$$AssignLicenseRequestImplCopyWith<$Res> {
  __$$AssignLicenseRequestImplCopyWithImpl(_$AssignLicenseRequestImpl _value,
      $Res Function(_$AssignLicenseRequestImpl) _then)
      : super(_value, _then);

  /// Create a copy of AssignLicenseRequest
  /// with the given fields replaced by the non-null parameter values.
  @pragma('vm:prefer-inline')
  @override
  $Res call({
    Object? userId = null,
  }) {
    return _then(_$AssignLicenseRequestImpl(
      userId: null == userId
          ? _value.userId
          : userId // ignore: cast_nullable_to_non_nullable
              as int,
    ));
  }
}

/// @nodoc
@JsonSerializable()
class _$AssignLicenseRequestImpl implements _AssignLicenseRequest {
  const _$AssignLicenseRequestImpl(
      {@JsonKey(name: 'user_id') required this.userId});

  factory _$AssignLicenseRequestImpl.fromJson(Map<String, dynamic> json) =>
      _$$AssignLicenseRequestImplFromJson(json);

  @override
  @JsonKey(name: 'user_id')
  final int userId;

  @override
  String toString() {
    return 'AssignLicenseRequest(userId: $userId)';
  }

  @override
  bool operator ==(Object other) {
    return identical(this, other) ||
        (other.runtimeType == runtimeType &&
            other is _$AssignLicenseRequestImpl &&
            (identical(other.userId, userId) || other.userId == userId));
  }

  @JsonKey(includeFromJson: false, includeToJson: false)
  @override
  int get hashCode => Object.hash(runtimeType, userId);

  /// Create a copy of AssignLicenseRequest
  /// with the given fields replaced by the non-null parameter values.
  @JsonKey(includeFromJson: false, includeToJson: false)
  @override
  @pragma('vm:prefer-inline')
  _$$AssignLicenseRequestImplCopyWith<_$AssignLicenseRequestImpl>
      get copyWith =>
          __$$AssignLicenseRequestImplCopyWithImpl<_$AssignLicenseRequestImpl>(
              this, _$identity);

  @override
  Map<String, dynamic> toJson() {
    return _$$AssignLicenseRequestImplToJson(
      this,
    );
  }
}

abstract class _AssignLicenseRequest implements AssignLicenseRequest {
  const factory _AssignLicenseRequest(
          {@JsonKey(name: 'user_id') required final int userId}) =
      _$AssignLicenseRequestImpl;

  factory _AssignLicenseRequest.fromJson(Map<String, dynamic> json) =
      _$AssignLicenseRequestImpl.fromJson;

  @override
  @JsonKey(name: 'user_id')
  int get userId;

  /// Create a copy of AssignLicenseRequest
  /// with the given fields replaced by the non-null parameter values.
  @override
  @JsonKey(includeFromJson: false, includeToJson: false)
  _$$AssignLicenseRequestImplCopyWith<_$AssignLicenseRequestImpl>
      get copyWith => throw _privateConstructorUsedError;
}
