// GENERATED CODE - DO NOT MODIFY BY HAND
// coverage:ignore-file
// 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 'nextcloud_capabilities_state.dart';

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

// dart format off
T _$identity<T>(T value) => value;

/// @nodoc
mixin _$NextcloudCapabilitiesState {

 bool get apiEnabled; bool get publicEnabled; bool get publicMultipleLinks; bool get publicUploadEnabled; bool get publicPasswordEnforced; bool get publicExpireEnabled; int? get publicExpireDays; bool get publicExpireEnforced; bool get groupEnabled; bool get resharing; int? get passwordMinLength; bool get passwordEnforceUpperLower; bool get passwordEnforceNumeric; bool get passwordEnforceSpecial;// Whether a capability response (or a definitive failure) has been observed
// at least once this session.
 bool get loaded;
/// Create a copy of NextcloudCapabilitiesState
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
$NextcloudCapabilitiesStateCopyWith<NextcloudCapabilitiesState> get copyWith => _$NextcloudCapabilitiesStateCopyWithImpl<NextcloudCapabilitiesState>(this as NextcloudCapabilitiesState, _$identity);

  /// Serializes this NextcloudCapabilitiesState to a JSON map.
  Map<String, dynamic> toJson();


@override
bool operator ==(Object other) {
  return identical(this, other) || (other.runtimeType == runtimeType&&other is NextcloudCapabilitiesState&&(identical(other.apiEnabled, apiEnabled) || other.apiEnabled == apiEnabled)&&(identical(other.publicEnabled, publicEnabled) || other.publicEnabled == publicEnabled)&&(identical(other.publicMultipleLinks, publicMultipleLinks) || other.publicMultipleLinks == publicMultipleLinks)&&(identical(other.publicUploadEnabled, publicUploadEnabled) || other.publicUploadEnabled == publicUploadEnabled)&&(identical(other.publicPasswordEnforced, publicPasswordEnforced) || other.publicPasswordEnforced == publicPasswordEnforced)&&(identical(other.publicExpireEnabled, publicExpireEnabled) || other.publicExpireEnabled == publicExpireEnabled)&&(identical(other.publicExpireDays, publicExpireDays) || other.publicExpireDays == publicExpireDays)&&(identical(other.publicExpireEnforced, publicExpireEnforced) || other.publicExpireEnforced == publicExpireEnforced)&&(identical(other.groupEnabled, groupEnabled) || other.groupEnabled == groupEnabled)&&(identical(other.resharing, resharing) || other.resharing == resharing)&&(identical(other.passwordMinLength, passwordMinLength) || other.passwordMinLength == passwordMinLength)&&(identical(other.passwordEnforceUpperLower, passwordEnforceUpperLower) || other.passwordEnforceUpperLower == passwordEnforceUpperLower)&&(identical(other.passwordEnforceNumeric, passwordEnforceNumeric) || other.passwordEnforceNumeric == passwordEnforceNumeric)&&(identical(other.passwordEnforceSpecial, passwordEnforceSpecial) || other.passwordEnforceSpecial == passwordEnforceSpecial)&&(identical(other.loaded, loaded) || other.loaded == loaded));
}

@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(runtimeType,apiEnabled,publicEnabled,publicMultipleLinks,publicUploadEnabled,publicPasswordEnforced,publicExpireEnabled,publicExpireDays,publicExpireEnforced,groupEnabled,resharing,passwordMinLength,passwordEnforceUpperLower,passwordEnforceNumeric,passwordEnforceSpecial,loaded);

@override
String toString() {
  return 'NextcloudCapabilitiesState(apiEnabled: $apiEnabled, publicEnabled: $publicEnabled, publicMultipleLinks: $publicMultipleLinks, publicUploadEnabled: $publicUploadEnabled, publicPasswordEnforced: $publicPasswordEnforced, publicExpireEnabled: $publicExpireEnabled, publicExpireDays: $publicExpireDays, publicExpireEnforced: $publicExpireEnforced, groupEnabled: $groupEnabled, resharing: $resharing, passwordMinLength: $passwordMinLength, passwordEnforceUpperLower: $passwordEnforceUpperLower, passwordEnforceNumeric: $passwordEnforceNumeric, passwordEnforceSpecial: $passwordEnforceSpecial, loaded: $loaded)';
}


}

/// @nodoc
abstract mixin class $NextcloudCapabilitiesStateCopyWith<$Res>  {
  factory $NextcloudCapabilitiesStateCopyWith(NextcloudCapabilitiesState value, $Res Function(NextcloudCapabilitiesState) _then) = _$NextcloudCapabilitiesStateCopyWithImpl;
@useResult
$Res call({
 bool apiEnabled, bool publicEnabled, bool publicMultipleLinks, bool publicUploadEnabled, bool publicPasswordEnforced, bool publicExpireEnabled, int? publicExpireDays, bool publicExpireEnforced, bool groupEnabled, bool resharing, int? passwordMinLength, bool passwordEnforceUpperLower, bool passwordEnforceNumeric, bool passwordEnforceSpecial, bool loaded
});




}
/// @nodoc
class _$NextcloudCapabilitiesStateCopyWithImpl<$Res>
    implements $NextcloudCapabilitiesStateCopyWith<$Res> {
  _$NextcloudCapabilitiesStateCopyWithImpl(this._self, this._then);

  final NextcloudCapabilitiesState _self;
  final $Res Function(NextcloudCapabilitiesState) _then;

/// Create a copy of NextcloudCapabilitiesState
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline') @override $Res call({Object? apiEnabled = null,Object? publicEnabled = null,Object? publicMultipleLinks = null,Object? publicUploadEnabled = null,Object? publicPasswordEnforced = null,Object? publicExpireEnabled = null,Object? publicExpireDays = freezed,Object? publicExpireEnforced = null,Object? groupEnabled = null,Object? resharing = null,Object? passwordMinLength = freezed,Object? passwordEnforceUpperLower = null,Object? passwordEnforceNumeric = null,Object? passwordEnforceSpecial = null,Object? loaded = null,}) {
  return _then(_self.copyWith(
apiEnabled: null == apiEnabled ? _self.apiEnabled : apiEnabled // ignore: cast_nullable_to_non_nullable
as bool,publicEnabled: null == publicEnabled ? _self.publicEnabled : publicEnabled // ignore: cast_nullable_to_non_nullable
as bool,publicMultipleLinks: null == publicMultipleLinks ? _self.publicMultipleLinks : publicMultipleLinks // ignore: cast_nullable_to_non_nullable
as bool,publicUploadEnabled: null == publicUploadEnabled ? _self.publicUploadEnabled : publicUploadEnabled // ignore: cast_nullable_to_non_nullable
as bool,publicPasswordEnforced: null == publicPasswordEnforced ? _self.publicPasswordEnforced : publicPasswordEnforced // ignore: cast_nullable_to_non_nullable
as bool,publicExpireEnabled: null == publicExpireEnabled ? _self.publicExpireEnabled : publicExpireEnabled // ignore: cast_nullable_to_non_nullable
as bool,publicExpireDays: freezed == publicExpireDays ? _self.publicExpireDays : publicExpireDays // ignore: cast_nullable_to_non_nullable
as int?,publicExpireEnforced: null == publicExpireEnforced ? _self.publicExpireEnforced : publicExpireEnforced // ignore: cast_nullable_to_non_nullable
as bool,groupEnabled: null == groupEnabled ? _self.groupEnabled : groupEnabled // ignore: cast_nullable_to_non_nullable
as bool,resharing: null == resharing ? _self.resharing : resharing // ignore: cast_nullable_to_non_nullable
as bool,passwordMinLength: freezed == passwordMinLength ? _self.passwordMinLength : passwordMinLength // ignore: cast_nullable_to_non_nullable
as int?,passwordEnforceUpperLower: null == passwordEnforceUpperLower ? _self.passwordEnforceUpperLower : passwordEnforceUpperLower // ignore: cast_nullable_to_non_nullable
as bool,passwordEnforceNumeric: null == passwordEnforceNumeric ? _self.passwordEnforceNumeric : passwordEnforceNumeric // ignore: cast_nullable_to_non_nullable
as bool,passwordEnforceSpecial: null == passwordEnforceSpecial ? _self.passwordEnforceSpecial : passwordEnforceSpecial // ignore: cast_nullable_to_non_nullable
as bool,loaded: null == loaded ? _self.loaded : loaded // ignore: cast_nullable_to_non_nullable
as bool,
  ));
}

}


/// Adds pattern-matching-related methods to [NextcloudCapabilitiesState].
extension NextcloudCapabilitiesStatePatterns on NextcloudCapabilitiesState {
/// A variant of `map` that fallback to returning `orElse`.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case final Subclass value:
///     return ...;
///   case _:
///     return orElse();
/// }
/// ```

@optionalTypeArgs TResult maybeMap<TResult extends Object?>(TResult Function( _NextcloudCapabilitiesState value)?  $default,{required TResult orElse(),}){
final _that = this;
switch (_that) {
case _NextcloudCapabilitiesState() when $default != null:
return $default(_that);case _:
  return orElse();

}
}
/// A `switch`-like method, using callbacks.
///
/// Callbacks receives the raw object, upcasted.
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case final Subclass value:
///     return ...;
///   case final Subclass2 value:
///     return ...;
/// }
/// ```

@optionalTypeArgs TResult map<TResult extends Object?>(TResult Function( _NextcloudCapabilitiesState value)  $default,){
final _that = this;
switch (_that) {
case _NextcloudCapabilitiesState():
return $default(_that);case _:
  throw StateError('Unexpected subclass');

}
}
/// A variant of `map` that fallback to returning `null`.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case final Subclass value:
///     return ...;
///   case _:
///     return null;
/// }
/// ```

@optionalTypeArgs TResult? mapOrNull<TResult extends Object?>(TResult? Function( _NextcloudCapabilitiesState value)?  $default,){
final _that = this;
switch (_that) {
case _NextcloudCapabilitiesState() when $default != null:
return $default(_that);case _:
  return null;

}
}
/// A variant of `when` that fallback to an `orElse` callback.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case Subclass(:final field):
///     return ...;
///   case _:
///     return orElse();
/// }
/// ```

@optionalTypeArgs TResult maybeWhen<TResult extends Object?>(TResult Function( bool apiEnabled,  bool publicEnabled,  bool publicMultipleLinks,  bool publicUploadEnabled,  bool publicPasswordEnforced,  bool publicExpireEnabled,  int? publicExpireDays,  bool publicExpireEnforced,  bool groupEnabled,  bool resharing,  int? passwordMinLength,  bool passwordEnforceUpperLower,  bool passwordEnforceNumeric,  bool passwordEnforceSpecial,  bool loaded)?  $default,{required TResult orElse(),}) {final _that = this;
switch (_that) {
case _NextcloudCapabilitiesState() when $default != null:
return $default(_that.apiEnabled,_that.publicEnabled,_that.publicMultipleLinks,_that.publicUploadEnabled,_that.publicPasswordEnforced,_that.publicExpireEnabled,_that.publicExpireDays,_that.publicExpireEnforced,_that.groupEnabled,_that.resharing,_that.passwordMinLength,_that.passwordEnforceUpperLower,_that.passwordEnforceNumeric,_that.passwordEnforceSpecial,_that.loaded);case _:
  return orElse();

}
}
/// A `switch`-like method, using callbacks.
///
/// As opposed to `map`, this offers destructuring.
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case Subclass(:final field):
///     return ...;
///   case Subclass2(:final field2):
///     return ...;
/// }
/// ```

@optionalTypeArgs TResult when<TResult extends Object?>(TResult Function( bool apiEnabled,  bool publicEnabled,  bool publicMultipleLinks,  bool publicUploadEnabled,  bool publicPasswordEnforced,  bool publicExpireEnabled,  int? publicExpireDays,  bool publicExpireEnforced,  bool groupEnabled,  bool resharing,  int? passwordMinLength,  bool passwordEnforceUpperLower,  bool passwordEnforceNumeric,  bool passwordEnforceSpecial,  bool loaded)  $default,) {final _that = this;
switch (_that) {
case _NextcloudCapabilitiesState():
return $default(_that.apiEnabled,_that.publicEnabled,_that.publicMultipleLinks,_that.publicUploadEnabled,_that.publicPasswordEnforced,_that.publicExpireEnabled,_that.publicExpireDays,_that.publicExpireEnforced,_that.groupEnabled,_that.resharing,_that.passwordMinLength,_that.passwordEnforceUpperLower,_that.passwordEnforceNumeric,_that.passwordEnforceSpecial,_that.loaded);case _:
  throw StateError('Unexpected subclass');

}
}
/// A variant of `when` that fallback to returning `null`
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case Subclass(:final field):
///     return ...;
///   case _:
///     return null;
/// }
/// ```

@optionalTypeArgs TResult? whenOrNull<TResult extends Object?>(TResult? Function( bool apiEnabled,  bool publicEnabled,  bool publicMultipleLinks,  bool publicUploadEnabled,  bool publicPasswordEnforced,  bool publicExpireEnabled,  int? publicExpireDays,  bool publicExpireEnforced,  bool groupEnabled,  bool resharing,  int? passwordMinLength,  bool passwordEnforceUpperLower,  bool passwordEnforceNumeric,  bool passwordEnforceSpecial,  bool loaded)?  $default,) {final _that = this;
switch (_that) {
case _NextcloudCapabilitiesState() when $default != null:
return $default(_that.apiEnabled,_that.publicEnabled,_that.publicMultipleLinks,_that.publicUploadEnabled,_that.publicPasswordEnforced,_that.publicExpireEnabled,_that.publicExpireDays,_that.publicExpireEnforced,_that.groupEnabled,_that.resharing,_that.passwordMinLength,_that.passwordEnforceUpperLower,_that.passwordEnforceNumeric,_that.passwordEnforceSpecial,_that.loaded);case _:
  return null;

}
}

}

/// @nodoc
@JsonSerializable()

class _NextcloudCapabilitiesState implements NextcloudCapabilitiesState {
  const _NextcloudCapabilitiesState({this.apiEnabled = false, this.publicEnabled = false, this.publicMultipleLinks = false, this.publicUploadEnabled = false, this.publicPasswordEnforced = false, this.publicExpireEnabled = false, this.publicExpireDays, this.publicExpireEnforced = false, this.groupEnabled = false, this.resharing = false, this.passwordMinLength, this.passwordEnforceUpperLower = false, this.passwordEnforceNumeric = false, this.passwordEnforceSpecial = false, this.loaded = false});
  factory _NextcloudCapabilitiesState.fromJson(Map<String, dynamic> json) => _$NextcloudCapabilitiesStateFromJson(json);

@override@JsonKey() final  bool apiEnabled;
@override@JsonKey() final  bool publicEnabled;
@override@JsonKey() final  bool publicMultipleLinks;
@override@JsonKey() final  bool publicUploadEnabled;
@override@JsonKey() final  bool publicPasswordEnforced;
@override@JsonKey() final  bool publicExpireEnabled;
@override final  int? publicExpireDays;
@override@JsonKey() final  bool publicExpireEnforced;
@override@JsonKey() final  bool groupEnabled;
@override@JsonKey() final  bool resharing;
@override final  int? passwordMinLength;
@override@JsonKey() final  bool passwordEnforceUpperLower;
@override@JsonKey() final  bool passwordEnforceNumeric;
@override@JsonKey() final  bool passwordEnforceSpecial;
// Whether a capability response (or a definitive failure) has been observed
// at least once this session.
@override@JsonKey() final  bool loaded;

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

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

@override
bool operator ==(Object other) {
  return identical(this, other) || (other.runtimeType == runtimeType&&other is _NextcloudCapabilitiesState&&(identical(other.apiEnabled, apiEnabled) || other.apiEnabled == apiEnabled)&&(identical(other.publicEnabled, publicEnabled) || other.publicEnabled == publicEnabled)&&(identical(other.publicMultipleLinks, publicMultipleLinks) || other.publicMultipleLinks == publicMultipleLinks)&&(identical(other.publicUploadEnabled, publicUploadEnabled) || other.publicUploadEnabled == publicUploadEnabled)&&(identical(other.publicPasswordEnforced, publicPasswordEnforced) || other.publicPasswordEnforced == publicPasswordEnforced)&&(identical(other.publicExpireEnabled, publicExpireEnabled) || other.publicExpireEnabled == publicExpireEnabled)&&(identical(other.publicExpireDays, publicExpireDays) || other.publicExpireDays == publicExpireDays)&&(identical(other.publicExpireEnforced, publicExpireEnforced) || other.publicExpireEnforced == publicExpireEnforced)&&(identical(other.groupEnabled, groupEnabled) || other.groupEnabled == groupEnabled)&&(identical(other.resharing, resharing) || other.resharing == resharing)&&(identical(other.passwordMinLength, passwordMinLength) || other.passwordMinLength == passwordMinLength)&&(identical(other.passwordEnforceUpperLower, passwordEnforceUpperLower) || other.passwordEnforceUpperLower == passwordEnforceUpperLower)&&(identical(other.passwordEnforceNumeric, passwordEnforceNumeric) || other.passwordEnforceNumeric == passwordEnforceNumeric)&&(identical(other.passwordEnforceSpecial, passwordEnforceSpecial) || other.passwordEnforceSpecial == passwordEnforceSpecial)&&(identical(other.loaded, loaded) || other.loaded == loaded));
}

@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(runtimeType,apiEnabled,publicEnabled,publicMultipleLinks,publicUploadEnabled,publicPasswordEnforced,publicExpireEnabled,publicExpireDays,publicExpireEnforced,groupEnabled,resharing,passwordMinLength,passwordEnforceUpperLower,passwordEnforceNumeric,passwordEnforceSpecial,loaded);

@override
String toString() {
  return 'NextcloudCapabilitiesState(apiEnabled: $apiEnabled, publicEnabled: $publicEnabled, publicMultipleLinks: $publicMultipleLinks, publicUploadEnabled: $publicUploadEnabled, publicPasswordEnforced: $publicPasswordEnforced, publicExpireEnabled: $publicExpireEnabled, publicExpireDays: $publicExpireDays, publicExpireEnforced: $publicExpireEnforced, groupEnabled: $groupEnabled, resharing: $resharing, passwordMinLength: $passwordMinLength, passwordEnforceUpperLower: $passwordEnforceUpperLower, passwordEnforceNumeric: $passwordEnforceNumeric, passwordEnforceSpecial: $passwordEnforceSpecial, loaded: $loaded)';
}


}

/// @nodoc
abstract mixin class _$NextcloudCapabilitiesStateCopyWith<$Res> implements $NextcloudCapabilitiesStateCopyWith<$Res> {
  factory _$NextcloudCapabilitiesStateCopyWith(_NextcloudCapabilitiesState value, $Res Function(_NextcloudCapabilitiesState) _then) = __$NextcloudCapabilitiesStateCopyWithImpl;
@override @useResult
$Res call({
 bool apiEnabled, bool publicEnabled, bool publicMultipleLinks, bool publicUploadEnabled, bool publicPasswordEnforced, bool publicExpireEnabled, int? publicExpireDays, bool publicExpireEnforced, bool groupEnabled, bool resharing, int? passwordMinLength, bool passwordEnforceUpperLower, bool passwordEnforceNumeric, bool passwordEnforceSpecial, bool loaded
});




}
/// @nodoc
class __$NextcloudCapabilitiesStateCopyWithImpl<$Res>
    implements _$NextcloudCapabilitiesStateCopyWith<$Res> {
  __$NextcloudCapabilitiesStateCopyWithImpl(this._self, this._then);

  final _NextcloudCapabilitiesState _self;
  final $Res Function(_NextcloudCapabilitiesState) _then;

/// Create a copy of NextcloudCapabilitiesState
/// with the given fields replaced by the non-null parameter values.
@override @pragma('vm:prefer-inline') $Res call({Object? apiEnabled = null,Object? publicEnabled = null,Object? publicMultipleLinks = null,Object? publicUploadEnabled = null,Object? publicPasswordEnforced = null,Object? publicExpireEnabled = null,Object? publicExpireDays = freezed,Object? publicExpireEnforced = null,Object? groupEnabled = null,Object? resharing = null,Object? passwordMinLength = freezed,Object? passwordEnforceUpperLower = null,Object? passwordEnforceNumeric = null,Object? passwordEnforceSpecial = null,Object? loaded = null,}) {
  return _then(_NextcloudCapabilitiesState(
apiEnabled: null == apiEnabled ? _self.apiEnabled : apiEnabled // ignore: cast_nullable_to_non_nullable
as bool,publicEnabled: null == publicEnabled ? _self.publicEnabled : publicEnabled // ignore: cast_nullable_to_non_nullable
as bool,publicMultipleLinks: null == publicMultipleLinks ? _self.publicMultipleLinks : publicMultipleLinks // ignore: cast_nullable_to_non_nullable
as bool,publicUploadEnabled: null == publicUploadEnabled ? _self.publicUploadEnabled : publicUploadEnabled // ignore: cast_nullable_to_non_nullable
as bool,publicPasswordEnforced: null == publicPasswordEnforced ? _self.publicPasswordEnforced : publicPasswordEnforced // ignore: cast_nullable_to_non_nullable
as bool,publicExpireEnabled: null == publicExpireEnabled ? _self.publicExpireEnabled : publicExpireEnabled // ignore: cast_nullable_to_non_nullable
as bool,publicExpireDays: freezed == publicExpireDays ? _self.publicExpireDays : publicExpireDays // ignore: cast_nullable_to_non_nullable
as int?,publicExpireEnforced: null == publicExpireEnforced ? _self.publicExpireEnforced : publicExpireEnforced // ignore: cast_nullable_to_non_nullable
as bool,groupEnabled: null == groupEnabled ? _self.groupEnabled : groupEnabled // ignore: cast_nullable_to_non_nullable
as bool,resharing: null == resharing ? _self.resharing : resharing // ignore: cast_nullable_to_non_nullable
as bool,passwordMinLength: freezed == passwordMinLength ? _self.passwordMinLength : passwordMinLength // ignore: cast_nullable_to_non_nullable
as int?,passwordEnforceUpperLower: null == passwordEnforceUpperLower ? _self.passwordEnforceUpperLower : passwordEnforceUpperLower // ignore: cast_nullable_to_non_nullable
as bool,passwordEnforceNumeric: null == passwordEnforceNumeric ? _self.passwordEnforceNumeric : passwordEnforceNumeric // ignore: cast_nullable_to_non_nullable
as bool,passwordEnforceSpecial: null == passwordEnforceSpecial ? _self.passwordEnforceSpecial : passwordEnforceSpecial // ignore: cast_nullable_to_non_nullable
as bool,loaded: null == loaded ? _self.loaded : loaded // ignore: cast_nullable_to_non_nullable
as bool,
  ));
}


}

// dart format on
