// 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_query_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');

LicensePaginationQuery _$LicensePaginationQueryFromJson(
    Map<String, dynamic> json) {
  return _LicensePaginationQuery.fromJson(json);
}

/// @nodoc
mixin _$LicensePaginationQuery {
  int get page => throw _privateConstructorUsedError;
  int get limit => throw _privateConstructorUsedError;
  String get sort => throw _privateConstructorUsedError;
  String get order => throw _privateConstructorUsedError;
  @JsonKey(name: 'company_id')
  String? get companyId => throw _privateConstructorUsedError;
  @JsonKey(name: 'user_id')
  String? get userId => throw _privateConstructorUsedError;
  @JsonKey(name: 'license_type')
  String? get licenseType => throw _privateConstructorUsedError;
  String? get status => throw _privateConstructorUsedError;
  String? get search => throw _privateConstructorUsedError;

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

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

/// @nodoc
abstract class $LicensePaginationQueryCopyWith<$Res> {
  factory $LicensePaginationQueryCopyWith(LicensePaginationQuery value,
          $Res Function(LicensePaginationQuery) then) =
      _$LicensePaginationQueryCopyWithImpl<$Res, LicensePaginationQuery>;
  @useResult
  $Res call(
      {int page,
      int limit,
      String sort,
      String order,
      @JsonKey(name: 'company_id') String? companyId,
      @JsonKey(name: 'user_id') String? userId,
      @JsonKey(name: 'license_type') String? licenseType,
      String? status,
      String? search});
}

/// @nodoc
class _$LicensePaginationQueryCopyWithImpl<$Res,
        $Val extends LicensePaginationQuery>
    implements $LicensePaginationQueryCopyWith<$Res> {
  _$LicensePaginationQueryCopyWithImpl(this._value, this._then);

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

  /// Create a copy of LicensePaginationQuery
  /// with the given fields replaced by the non-null parameter values.
  @pragma('vm:prefer-inline')
  @override
  $Res call({
    Object? page = null,
    Object? limit = null,
    Object? sort = null,
    Object? order = null,
    Object? companyId = freezed,
    Object? userId = freezed,
    Object? licenseType = freezed,
    Object? status = freezed,
    Object? search = freezed,
  }) {
    return _then(_value.copyWith(
      page: null == page
          ? _value.page
          : page // ignore: cast_nullable_to_non_nullable
              as int,
      limit: null == limit
          ? _value.limit
          : limit // ignore: cast_nullable_to_non_nullable
              as int,
      sort: null == sort
          ? _value.sort
          : sort // ignore: cast_nullable_to_non_nullable
              as String,
      order: null == order
          ? _value.order
          : order // ignore: cast_nullable_to_non_nullable
              as String,
      companyId: freezed == companyId
          ? _value.companyId
          : companyId // ignore: cast_nullable_to_non_nullable
              as String?,
      userId: freezed == userId
          ? _value.userId
          : userId // ignore: cast_nullable_to_non_nullable
              as String?,
      licenseType: freezed == licenseType
          ? _value.licenseType
          : licenseType // ignore: cast_nullable_to_non_nullable
              as String?,
      status: freezed == status
          ? _value.status
          : status // ignore: cast_nullable_to_non_nullable
              as String?,
      search: freezed == search
          ? _value.search
          : search // ignore: cast_nullable_to_non_nullable
              as String?,
    ) as $Val);
  }
}

/// @nodoc
abstract class _$$LicensePaginationQueryImplCopyWith<$Res>
    implements $LicensePaginationQueryCopyWith<$Res> {
  factory _$$LicensePaginationQueryImplCopyWith(
          _$LicensePaginationQueryImpl value,
          $Res Function(_$LicensePaginationQueryImpl) then) =
      __$$LicensePaginationQueryImplCopyWithImpl<$Res>;
  @override
  @useResult
  $Res call(
      {int page,
      int limit,
      String sort,
      String order,
      @JsonKey(name: 'company_id') String? companyId,
      @JsonKey(name: 'user_id') String? userId,
      @JsonKey(name: 'license_type') String? licenseType,
      String? status,
      String? search});
}

/// @nodoc
class __$$LicensePaginationQueryImplCopyWithImpl<$Res>
    extends _$LicensePaginationQueryCopyWithImpl<$Res,
        _$LicensePaginationQueryImpl>
    implements _$$LicensePaginationQueryImplCopyWith<$Res> {
  __$$LicensePaginationQueryImplCopyWithImpl(
      _$LicensePaginationQueryImpl _value,
      $Res Function(_$LicensePaginationQueryImpl) _then)
      : super(_value, _then);

  /// Create a copy of LicensePaginationQuery
  /// with the given fields replaced by the non-null parameter values.
  @pragma('vm:prefer-inline')
  @override
  $Res call({
    Object? page = null,
    Object? limit = null,
    Object? sort = null,
    Object? order = null,
    Object? companyId = freezed,
    Object? userId = freezed,
    Object? licenseType = freezed,
    Object? status = freezed,
    Object? search = freezed,
  }) {
    return _then(_$LicensePaginationQueryImpl(
      page: null == page
          ? _value.page
          : page // ignore: cast_nullable_to_non_nullable
              as int,
      limit: null == limit
          ? _value.limit
          : limit // ignore: cast_nullable_to_non_nullable
              as int,
      sort: null == sort
          ? _value.sort
          : sort // ignore: cast_nullable_to_non_nullable
              as String,
      order: null == order
          ? _value.order
          : order // ignore: cast_nullable_to_non_nullable
              as String,
      companyId: freezed == companyId
          ? _value.companyId
          : companyId // ignore: cast_nullable_to_non_nullable
              as String?,
      userId: freezed == userId
          ? _value.userId
          : userId // ignore: cast_nullable_to_non_nullable
              as String?,
      licenseType: freezed == licenseType
          ? _value.licenseType
          : licenseType // ignore: cast_nullable_to_non_nullable
              as String?,
      status: freezed == status
          ? _value.status
          : status // ignore: cast_nullable_to_non_nullable
              as String?,
      search: freezed == search
          ? _value.search
          : search // ignore: cast_nullable_to_non_nullable
              as String?,
    ));
  }
}

/// @nodoc
@JsonSerializable()
class _$LicensePaginationQueryImpl implements _LicensePaginationQuery {
  const _$LicensePaginationQueryImpl(
      {this.page = 1,
      this.limit = 20,
      this.sort = 'expiry_date',
      this.order = 'asc',
      @JsonKey(name: 'company_id') this.companyId,
      @JsonKey(name: 'user_id') this.userId,
      @JsonKey(name: 'license_type') this.licenseType,
      this.status,
      this.search});

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

  @override
  @JsonKey()
  final int page;
  @override
  @JsonKey()
  final int limit;
  @override
  @JsonKey()
  final String sort;
  @override
  @JsonKey()
  final String order;
  @override
  @JsonKey(name: 'company_id')
  final String? companyId;
  @override
  @JsonKey(name: 'user_id')
  final String? userId;
  @override
  @JsonKey(name: 'license_type')
  final String? licenseType;
  @override
  final String? status;
  @override
  final String? search;

  @override
  String toString() {
    return 'LicensePaginationQuery(page: $page, limit: $limit, sort: $sort, order: $order, companyId: $companyId, userId: $userId, licenseType: $licenseType, status: $status, search: $search)';
  }

  @override
  bool operator ==(Object other) {
    return identical(this, other) ||
        (other.runtimeType == runtimeType &&
            other is _$LicensePaginationQueryImpl &&
            (identical(other.page, page) || other.page == page) &&
            (identical(other.limit, limit) || other.limit == limit) &&
            (identical(other.sort, sort) || other.sort == sort) &&
            (identical(other.order, order) || other.order == order) &&
            (identical(other.companyId, companyId) ||
                other.companyId == companyId) &&
            (identical(other.userId, userId) || other.userId == userId) &&
            (identical(other.licenseType, licenseType) ||
                other.licenseType == licenseType) &&
            (identical(other.status, status) || other.status == status) &&
            (identical(other.search, search) || other.search == search));
  }

  @JsonKey(includeFromJson: false, includeToJson: false)
  @override
  int get hashCode => Object.hash(runtimeType, page, limit, sort, order,
      companyId, userId, licenseType, status, search);

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

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

abstract class _LicensePaginationQuery implements LicensePaginationQuery {
  const factory _LicensePaginationQuery(
      {final int page,
      final int limit,
      final String sort,
      final String order,
      @JsonKey(name: 'company_id') final String? companyId,
      @JsonKey(name: 'user_id') final String? userId,
      @JsonKey(name: 'license_type') final String? licenseType,
      final String? status,
      final String? search}) = _$LicensePaginationQueryImpl;

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

  @override
  int get page;
  @override
  int get limit;
  @override
  String get sort;
  @override
  String get order;
  @override
  @JsonKey(name: 'company_id')
  String? get companyId;
  @override
  @JsonKey(name: 'user_id')
  String? get userId;
  @override
  @JsonKey(name: 'license_type')
  String? get licenseType;
  @override
  String? get status;
  @override
  String? get search;

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

ExpiringLicensesQuery _$ExpiringLicensesQueryFromJson(
    Map<String, dynamic> json) {
  return _ExpiringLicensesQuery.fromJson(json);
}

/// @nodoc
mixin _$ExpiringLicensesQuery {
  int get days => throw _privateConstructorUsedError;

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

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

/// @nodoc
abstract class $ExpiringLicensesQueryCopyWith<$Res> {
  factory $ExpiringLicensesQueryCopyWith(ExpiringLicensesQuery value,
          $Res Function(ExpiringLicensesQuery) then) =
      _$ExpiringLicensesQueryCopyWithImpl<$Res, ExpiringLicensesQuery>;
  @useResult
  $Res call({int days});
}

/// @nodoc
class _$ExpiringLicensesQueryCopyWithImpl<$Res,
        $Val extends ExpiringLicensesQuery>
    implements $ExpiringLicensesQueryCopyWith<$Res> {
  _$ExpiringLicensesQueryCopyWithImpl(this._value, this._then);

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

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

/// @nodoc
abstract class _$$ExpiringLicensesQueryImplCopyWith<$Res>
    implements $ExpiringLicensesQueryCopyWith<$Res> {
  factory _$$ExpiringLicensesQueryImplCopyWith(
          _$ExpiringLicensesQueryImpl value,
          $Res Function(_$ExpiringLicensesQueryImpl) then) =
      __$$ExpiringLicensesQueryImplCopyWithImpl<$Res>;
  @override
  @useResult
  $Res call({int days});
}

/// @nodoc
class __$$ExpiringLicensesQueryImplCopyWithImpl<$Res>
    extends _$ExpiringLicensesQueryCopyWithImpl<$Res,
        _$ExpiringLicensesQueryImpl>
    implements _$$ExpiringLicensesQueryImplCopyWith<$Res> {
  __$$ExpiringLicensesQueryImplCopyWithImpl(_$ExpiringLicensesQueryImpl _value,
      $Res Function(_$ExpiringLicensesQueryImpl) _then)
      : super(_value, _then);

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

/// @nodoc
@JsonSerializable()
class _$ExpiringLicensesQueryImpl implements _ExpiringLicensesQuery {
  const _$ExpiringLicensesQueryImpl({this.days = 30});

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

  @override
  @JsonKey()
  final int days;

  @override
  String toString() {
    return 'ExpiringLicensesQuery(days: $days)';
  }

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

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

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

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

abstract class _ExpiringLicensesQuery implements ExpiringLicensesQuery {
  const factory _ExpiringLicensesQuery({final int days}) =
      _$ExpiringLicensesQueryImpl;

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

  @override
  int get days;

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