// 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 'error.dart';

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

// dart format off
T _$identity<T>(T value) => value;
/// @nodoc
mixin _$ApiError {





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


@override
int get hashCode => runtimeType.hashCode;

@override
String toString() {
  return 'ApiError()';
}


}

/// @nodoc
class $ApiErrorCopyWith<$Res>  {
$ApiErrorCopyWith(ApiError _, $Res Function(ApiError) __);
}


/// Adds pattern-matching-related methods to [ApiError].
extension ApiErrorPatterns on ApiError {
/// 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( ApiError_Whitenoise value)?  whitenoise,TResult Function( ApiError_DatabasePoolTimedOut value)?  databasePoolTimedOut,TResult Function( ApiError_InvalidKey value)?  invalidKey,TResult Function( ApiError_NostrUrl value)?  nostrUrl,TResult Function( ApiError_NostrTag value)?  nostrTag,TResult Function( ApiError_NostrEvent value)?  nostrEvent,TResult Function( ApiError_NostrParse value)?  nostrParse,TResult Function( ApiError_NostrHex value)?  nostrHex,TResult Function( ApiError_LoginInvalidKeyFormat value)?  loginInvalidKeyFormat,TResult Function( ApiError_LoginNoRelayConnections value)?  loginNoRelayConnections,TResult Function( ApiError_LoginTimeout value)?  loginTimeout,TResult Function( ApiError_LoginNoLoginInProgress value)?  loginNoLoginInProgress,TResult Function( ApiError_LoginInternal value)?  loginInternal,TResult Function( ApiError_LoginKeyringUnavailable value)?  loginKeyringUnavailable,TResult Function( ApiError_Other value)?  other,required TResult orElse(),}){
final _that = this;
switch (_that) {
case ApiError_Whitenoise() when whitenoise != null:
return whitenoise(_that);case ApiError_DatabasePoolTimedOut() when databasePoolTimedOut != null:
return databasePoolTimedOut(_that);case ApiError_InvalidKey() when invalidKey != null:
return invalidKey(_that);case ApiError_NostrUrl() when nostrUrl != null:
return nostrUrl(_that);case ApiError_NostrTag() when nostrTag != null:
return nostrTag(_that);case ApiError_NostrEvent() when nostrEvent != null:
return nostrEvent(_that);case ApiError_NostrParse() when nostrParse != null:
return nostrParse(_that);case ApiError_NostrHex() when nostrHex != null:
return nostrHex(_that);case ApiError_LoginInvalidKeyFormat() when loginInvalidKeyFormat != null:
return loginInvalidKeyFormat(_that);case ApiError_LoginNoRelayConnections() when loginNoRelayConnections != null:
return loginNoRelayConnections(_that);case ApiError_LoginTimeout() when loginTimeout != null:
return loginTimeout(_that);case ApiError_LoginNoLoginInProgress() when loginNoLoginInProgress != null:
return loginNoLoginInProgress(_that);case ApiError_LoginInternal() when loginInternal != null:
return loginInternal(_that);case ApiError_LoginKeyringUnavailable() when loginKeyringUnavailable != null:
return loginKeyringUnavailable(_that);case ApiError_Other() when other != null:
return other(_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?>({required TResult Function( ApiError_Whitenoise value)  whitenoise,required TResult Function( ApiError_DatabasePoolTimedOut value)  databasePoolTimedOut,required TResult Function( ApiError_InvalidKey value)  invalidKey,required TResult Function( ApiError_NostrUrl value)  nostrUrl,required TResult Function( ApiError_NostrTag value)  nostrTag,required TResult Function( ApiError_NostrEvent value)  nostrEvent,required TResult Function( ApiError_NostrParse value)  nostrParse,required TResult Function( ApiError_NostrHex value)  nostrHex,required TResult Function( ApiError_LoginInvalidKeyFormat value)  loginInvalidKeyFormat,required TResult Function( ApiError_LoginNoRelayConnections value)  loginNoRelayConnections,required TResult Function( ApiError_LoginTimeout value)  loginTimeout,required TResult Function( ApiError_LoginNoLoginInProgress value)  loginNoLoginInProgress,required TResult Function( ApiError_LoginInternal value)  loginInternal,required TResult Function( ApiError_LoginKeyringUnavailable value)  loginKeyringUnavailable,required TResult Function( ApiError_Other value)  other,}){
final _that = this;
switch (_that) {
case ApiError_Whitenoise():
return whitenoise(_that);case ApiError_DatabasePoolTimedOut():
return databasePoolTimedOut(_that);case ApiError_InvalidKey():
return invalidKey(_that);case ApiError_NostrUrl():
return nostrUrl(_that);case ApiError_NostrTag():
return nostrTag(_that);case ApiError_NostrEvent():
return nostrEvent(_that);case ApiError_NostrParse():
return nostrParse(_that);case ApiError_NostrHex():
return nostrHex(_that);case ApiError_LoginInvalidKeyFormat():
return loginInvalidKeyFormat(_that);case ApiError_LoginNoRelayConnections():
return loginNoRelayConnections(_that);case ApiError_LoginTimeout():
return loginTimeout(_that);case ApiError_LoginNoLoginInProgress():
return loginNoLoginInProgress(_that);case ApiError_LoginInternal():
return loginInternal(_that);case ApiError_LoginKeyringUnavailable():
return loginKeyringUnavailable(_that);case ApiError_Other():
return other(_that);}
}
/// 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( ApiError_Whitenoise value)?  whitenoise,TResult? Function( ApiError_DatabasePoolTimedOut value)?  databasePoolTimedOut,TResult? Function( ApiError_InvalidKey value)?  invalidKey,TResult? Function( ApiError_NostrUrl value)?  nostrUrl,TResult? Function( ApiError_NostrTag value)?  nostrTag,TResult? Function( ApiError_NostrEvent value)?  nostrEvent,TResult? Function( ApiError_NostrParse value)?  nostrParse,TResult? Function( ApiError_NostrHex value)?  nostrHex,TResult? Function( ApiError_LoginInvalidKeyFormat value)?  loginInvalidKeyFormat,TResult? Function( ApiError_LoginNoRelayConnections value)?  loginNoRelayConnections,TResult? Function( ApiError_LoginTimeout value)?  loginTimeout,TResult? Function( ApiError_LoginNoLoginInProgress value)?  loginNoLoginInProgress,TResult? Function( ApiError_LoginInternal value)?  loginInternal,TResult? Function( ApiError_LoginKeyringUnavailable value)?  loginKeyringUnavailable,TResult? Function( ApiError_Other value)?  other,}){
final _that = this;
switch (_that) {
case ApiError_Whitenoise() when whitenoise != null:
return whitenoise(_that);case ApiError_DatabasePoolTimedOut() when databasePoolTimedOut != null:
return databasePoolTimedOut(_that);case ApiError_InvalidKey() when invalidKey != null:
return invalidKey(_that);case ApiError_NostrUrl() when nostrUrl != null:
return nostrUrl(_that);case ApiError_NostrTag() when nostrTag != null:
return nostrTag(_that);case ApiError_NostrEvent() when nostrEvent != null:
return nostrEvent(_that);case ApiError_NostrParse() when nostrParse != null:
return nostrParse(_that);case ApiError_NostrHex() when nostrHex != null:
return nostrHex(_that);case ApiError_LoginInvalidKeyFormat() when loginInvalidKeyFormat != null:
return loginInvalidKeyFormat(_that);case ApiError_LoginNoRelayConnections() when loginNoRelayConnections != null:
return loginNoRelayConnections(_that);case ApiError_LoginTimeout() when loginTimeout != null:
return loginTimeout(_that);case ApiError_LoginNoLoginInProgress() when loginNoLoginInProgress != null:
return loginNoLoginInProgress(_that);case ApiError_LoginInternal() when loginInternal != null:
return loginInternal(_that);case ApiError_LoginKeyringUnavailable() when loginKeyringUnavailable != null:
return loginKeyringUnavailable(_that);case ApiError_Other() when other != null:
return other(_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( String message)?  whitenoise,TResult Function( String message)?  databasePoolTimedOut,TResult Function( String message)?  invalidKey,TResult Function( String message)?  nostrUrl,TResult Function( String message)?  nostrTag,TResult Function( String message)?  nostrEvent,TResult Function( String message)?  nostrParse,TResult Function( String message)?  nostrHex,TResult Function( String message)?  loginInvalidKeyFormat,TResult Function()?  loginNoRelayConnections,TResult Function( String message)?  loginTimeout,TResult Function()?  loginNoLoginInProgress,TResult Function( String message)?  loginInternal,TResult Function( String message)?  loginKeyringUnavailable,TResult Function( String message)?  other,required TResult orElse(),}) {final _that = this;
switch (_that) {
case ApiError_Whitenoise() when whitenoise != null:
return whitenoise(_that.message);case ApiError_DatabasePoolTimedOut() when databasePoolTimedOut != null:
return databasePoolTimedOut(_that.message);case ApiError_InvalidKey() when invalidKey != null:
return invalidKey(_that.message);case ApiError_NostrUrl() when nostrUrl != null:
return nostrUrl(_that.message);case ApiError_NostrTag() when nostrTag != null:
return nostrTag(_that.message);case ApiError_NostrEvent() when nostrEvent != null:
return nostrEvent(_that.message);case ApiError_NostrParse() when nostrParse != null:
return nostrParse(_that.message);case ApiError_NostrHex() when nostrHex != null:
return nostrHex(_that.message);case ApiError_LoginInvalidKeyFormat() when loginInvalidKeyFormat != null:
return loginInvalidKeyFormat(_that.message);case ApiError_LoginNoRelayConnections() when loginNoRelayConnections != null:
return loginNoRelayConnections();case ApiError_LoginTimeout() when loginTimeout != null:
return loginTimeout(_that.message);case ApiError_LoginNoLoginInProgress() when loginNoLoginInProgress != null:
return loginNoLoginInProgress();case ApiError_LoginInternal() when loginInternal != null:
return loginInternal(_that.message);case ApiError_LoginKeyringUnavailable() when loginKeyringUnavailable != null:
return loginKeyringUnavailable(_that.message);case ApiError_Other() when other != null:
return other(_that.message);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?>({required TResult Function( String message)  whitenoise,required TResult Function( String message)  databasePoolTimedOut,required TResult Function( String message)  invalidKey,required TResult Function( String message)  nostrUrl,required TResult Function( String message)  nostrTag,required TResult Function( String message)  nostrEvent,required TResult Function( String message)  nostrParse,required TResult Function( String message)  nostrHex,required TResult Function( String message)  loginInvalidKeyFormat,required TResult Function()  loginNoRelayConnections,required TResult Function( String message)  loginTimeout,required TResult Function()  loginNoLoginInProgress,required TResult Function( String message)  loginInternal,required TResult Function( String message)  loginKeyringUnavailable,required TResult Function( String message)  other,}) {final _that = this;
switch (_that) {
case ApiError_Whitenoise():
return whitenoise(_that.message);case ApiError_DatabasePoolTimedOut():
return databasePoolTimedOut(_that.message);case ApiError_InvalidKey():
return invalidKey(_that.message);case ApiError_NostrUrl():
return nostrUrl(_that.message);case ApiError_NostrTag():
return nostrTag(_that.message);case ApiError_NostrEvent():
return nostrEvent(_that.message);case ApiError_NostrParse():
return nostrParse(_that.message);case ApiError_NostrHex():
return nostrHex(_that.message);case ApiError_LoginInvalidKeyFormat():
return loginInvalidKeyFormat(_that.message);case ApiError_LoginNoRelayConnections():
return loginNoRelayConnections();case ApiError_LoginTimeout():
return loginTimeout(_that.message);case ApiError_LoginNoLoginInProgress():
return loginNoLoginInProgress();case ApiError_LoginInternal():
return loginInternal(_that.message);case ApiError_LoginKeyringUnavailable():
return loginKeyringUnavailable(_that.message);case ApiError_Other():
return other(_that.message);}
}
/// 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( String message)?  whitenoise,TResult? Function( String message)?  databasePoolTimedOut,TResult? Function( String message)?  invalidKey,TResult? Function( String message)?  nostrUrl,TResult? Function( String message)?  nostrTag,TResult? Function( String message)?  nostrEvent,TResult? Function( String message)?  nostrParse,TResult? Function( String message)?  nostrHex,TResult? Function( String message)?  loginInvalidKeyFormat,TResult? Function()?  loginNoRelayConnections,TResult? Function( String message)?  loginTimeout,TResult? Function()?  loginNoLoginInProgress,TResult? Function( String message)?  loginInternal,TResult? Function( String message)?  loginKeyringUnavailable,TResult? Function( String message)?  other,}) {final _that = this;
switch (_that) {
case ApiError_Whitenoise() when whitenoise != null:
return whitenoise(_that.message);case ApiError_DatabasePoolTimedOut() when databasePoolTimedOut != null:
return databasePoolTimedOut(_that.message);case ApiError_InvalidKey() when invalidKey != null:
return invalidKey(_that.message);case ApiError_NostrUrl() when nostrUrl != null:
return nostrUrl(_that.message);case ApiError_NostrTag() when nostrTag != null:
return nostrTag(_that.message);case ApiError_NostrEvent() when nostrEvent != null:
return nostrEvent(_that.message);case ApiError_NostrParse() when nostrParse != null:
return nostrParse(_that.message);case ApiError_NostrHex() when nostrHex != null:
return nostrHex(_that.message);case ApiError_LoginInvalidKeyFormat() when loginInvalidKeyFormat != null:
return loginInvalidKeyFormat(_that.message);case ApiError_LoginNoRelayConnections() when loginNoRelayConnections != null:
return loginNoRelayConnections();case ApiError_LoginTimeout() when loginTimeout != null:
return loginTimeout(_that.message);case ApiError_LoginNoLoginInProgress() when loginNoLoginInProgress != null:
return loginNoLoginInProgress();case ApiError_LoginInternal() when loginInternal != null:
return loginInternal(_that.message);case ApiError_LoginKeyringUnavailable() when loginKeyringUnavailable != null:
return loginKeyringUnavailable(_that.message);case ApiError_Other() when other != null:
return other(_that.message);case _:
  return null;

}
}

}

/// @nodoc


class ApiError_Whitenoise extends ApiError {
  const ApiError_Whitenoise({required this.message}): super._();
  

 final  String message;

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



@override
bool operator ==(Object other) {
  return identical(this, other) || (other.runtimeType == runtimeType&&other is ApiError_Whitenoise&&(identical(other.message, message) || other.message == message));
}


@override
int get hashCode => Object.hash(runtimeType,message);

@override
String toString() {
  return 'ApiError.whitenoise(message: $message)';
}


}

/// @nodoc
abstract mixin class $ApiError_WhitenoiseCopyWith<$Res> implements $ApiErrorCopyWith<$Res> {
  factory $ApiError_WhitenoiseCopyWith(ApiError_Whitenoise value, $Res Function(ApiError_Whitenoise) _then) = _$ApiError_WhitenoiseCopyWithImpl;
@useResult
$Res call({
 String message
});




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

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

/// Create a copy of ApiError
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline') $Res call({Object? message = null,}) {
  return _then(ApiError_Whitenoise(
message: null == message ? _self.message : message // ignore: cast_nullable_to_non_nullable
as String,
  ));
}


}

/// @nodoc


class ApiError_DatabasePoolTimedOut extends ApiError {
  const ApiError_DatabasePoolTimedOut({required this.message}): super._();
  

 final  String message;

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



@override
bool operator ==(Object other) {
  return identical(this, other) || (other.runtimeType == runtimeType&&other is ApiError_DatabasePoolTimedOut&&(identical(other.message, message) || other.message == message));
}


@override
int get hashCode => Object.hash(runtimeType,message);

@override
String toString() {
  return 'ApiError.databasePoolTimedOut(message: $message)';
}


}

/// @nodoc
abstract mixin class $ApiError_DatabasePoolTimedOutCopyWith<$Res> implements $ApiErrorCopyWith<$Res> {
  factory $ApiError_DatabasePoolTimedOutCopyWith(ApiError_DatabasePoolTimedOut value, $Res Function(ApiError_DatabasePoolTimedOut) _then) = _$ApiError_DatabasePoolTimedOutCopyWithImpl;
@useResult
$Res call({
 String message
});




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

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

/// Create a copy of ApiError
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline') $Res call({Object? message = null,}) {
  return _then(ApiError_DatabasePoolTimedOut(
message: null == message ? _self.message : message // ignore: cast_nullable_to_non_nullable
as String,
  ));
}


}

/// @nodoc


class ApiError_InvalidKey extends ApiError {
  const ApiError_InvalidKey({required this.message}): super._();
  

 final  String message;

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



@override
bool operator ==(Object other) {
  return identical(this, other) || (other.runtimeType == runtimeType&&other is ApiError_InvalidKey&&(identical(other.message, message) || other.message == message));
}


@override
int get hashCode => Object.hash(runtimeType,message);

@override
String toString() {
  return 'ApiError.invalidKey(message: $message)';
}


}

/// @nodoc
abstract mixin class $ApiError_InvalidKeyCopyWith<$Res> implements $ApiErrorCopyWith<$Res> {
  factory $ApiError_InvalidKeyCopyWith(ApiError_InvalidKey value, $Res Function(ApiError_InvalidKey) _then) = _$ApiError_InvalidKeyCopyWithImpl;
@useResult
$Res call({
 String message
});




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

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

/// Create a copy of ApiError
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline') $Res call({Object? message = null,}) {
  return _then(ApiError_InvalidKey(
message: null == message ? _self.message : message // ignore: cast_nullable_to_non_nullable
as String,
  ));
}


}

/// @nodoc


class ApiError_NostrUrl extends ApiError {
  const ApiError_NostrUrl({required this.message}): super._();
  

 final  String message;

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



@override
bool operator ==(Object other) {
  return identical(this, other) || (other.runtimeType == runtimeType&&other is ApiError_NostrUrl&&(identical(other.message, message) || other.message == message));
}


@override
int get hashCode => Object.hash(runtimeType,message);

@override
String toString() {
  return 'ApiError.nostrUrl(message: $message)';
}


}

/// @nodoc
abstract mixin class $ApiError_NostrUrlCopyWith<$Res> implements $ApiErrorCopyWith<$Res> {
  factory $ApiError_NostrUrlCopyWith(ApiError_NostrUrl value, $Res Function(ApiError_NostrUrl) _then) = _$ApiError_NostrUrlCopyWithImpl;
@useResult
$Res call({
 String message
});




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

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

/// Create a copy of ApiError
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline') $Res call({Object? message = null,}) {
  return _then(ApiError_NostrUrl(
message: null == message ? _self.message : message // ignore: cast_nullable_to_non_nullable
as String,
  ));
}


}

/// @nodoc


class ApiError_NostrTag extends ApiError {
  const ApiError_NostrTag({required this.message}): super._();
  

 final  String message;

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



@override
bool operator ==(Object other) {
  return identical(this, other) || (other.runtimeType == runtimeType&&other is ApiError_NostrTag&&(identical(other.message, message) || other.message == message));
}


@override
int get hashCode => Object.hash(runtimeType,message);

@override
String toString() {
  return 'ApiError.nostrTag(message: $message)';
}


}

/// @nodoc
abstract mixin class $ApiError_NostrTagCopyWith<$Res> implements $ApiErrorCopyWith<$Res> {
  factory $ApiError_NostrTagCopyWith(ApiError_NostrTag value, $Res Function(ApiError_NostrTag) _then) = _$ApiError_NostrTagCopyWithImpl;
@useResult
$Res call({
 String message
});




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

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

/// Create a copy of ApiError
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline') $Res call({Object? message = null,}) {
  return _then(ApiError_NostrTag(
message: null == message ? _self.message : message // ignore: cast_nullable_to_non_nullable
as String,
  ));
}


}

/// @nodoc


class ApiError_NostrEvent extends ApiError {
  const ApiError_NostrEvent({required this.message}): super._();
  

 final  String message;

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



@override
bool operator ==(Object other) {
  return identical(this, other) || (other.runtimeType == runtimeType&&other is ApiError_NostrEvent&&(identical(other.message, message) || other.message == message));
}


@override
int get hashCode => Object.hash(runtimeType,message);

@override
String toString() {
  return 'ApiError.nostrEvent(message: $message)';
}


}

/// @nodoc
abstract mixin class $ApiError_NostrEventCopyWith<$Res> implements $ApiErrorCopyWith<$Res> {
  factory $ApiError_NostrEventCopyWith(ApiError_NostrEvent value, $Res Function(ApiError_NostrEvent) _then) = _$ApiError_NostrEventCopyWithImpl;
@useResult
$Res call({
 String message
});




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

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

/// Create a copy of ApiError
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline') $Res call({Object? message = null,}) {
  return _then(ApiError_NostrEvent(
message: null == message ? _self.message : message // ignore: cast_nullable_to_non_nullable
as String,
  ));
}


}

/// @nodoc


class ApiError_NostrParse extends ApiError {
  const ApiError_NostrParse({required this.message}): super._();
  

 final  String message;

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



@override
bool operator ==(Object other) {
  return identical(this, other) || (other.runtimeType == runtimeType&&other is ApiError_NostrParse&&(identical(other.message, message) || other.message == message));
}


@override
int get hashCode => Object.hash(runtimeType,message);

@override
String toString() {
  return 'ApiError.nostrParse(message: $message)';
}


}

/// @nodoc
abstract mixin class $ApiError_NostrParseCopyWith<$Res> implements $ApiErrorCopyWith<$Res> {
  factory $ApiError_NostrParseCopyWith(ApiError_NostrParse value, $Res Function(ApiError_NostrParse) _then) = _$ApiError_NostrParseCopyWithImpl;
@useResult
$Res call({
 String message
});




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

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

/// Create a copy of ApiError
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline') $Res call({Object? message = null,}) {
  return _then(ApiError_NostrParse(
message: null == message ? _self.message : message // ignore: cast_nullable_to_non_nullable
as String,
  ));
}


}

/// @nodoc


class ApiError_NostrHex extends ApiError {
  const ApiError_NostrHex({required this.message}): super._();
  

 final  String message;

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



@override
bool operator ==(Object other) {
  return identical(this, other) || (other.runtimeType == runtimeType&&other is ApiError_NostrHex&&(identical(other.message, message) || other.message == message));
}


@override
int get hashCode => Object.hash(runtimeType,message);

@override
String toString() {
  return 'ApiError.nostrHex(message: $message)';
}


}

/// @nodoc
abstract mixin class $ApiError_NostrHexCopyWith<$Res> implements $ApiErrorCopyWith<$Res> {
  factory $ApiError_NostrHexCopyWith(ApiError_NostrHex value, $Res Function(ApiError_NostrHex) _then) = _$ApiError_NostrHexCopyWithImpl;
@useResult
$Res call({
 String message
});




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

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

/// Create a copy of ApiError
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline') $Res call({Object? message = null,}) {
  return _then(ApiError_NostrHex(
message: null == message ? _self.message : message // ignore: cast_nullable_to_non_nullable
as String,
  ));
}


}

/// @nodoc


class ApiError_LoginInvalidKeyFormat extends ApiError {
  const ApiError_LoginInvalidKeyFormat({required this.message}): super._();
  

 final  String message;

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



@override
bool operator ==(Object other) {
  return identical(this, other) || (other.runtimeType == runtimeType&&other is ApiError_LoginInvalidKeyFormat&&(identical(other.message, message) || other.message == message));
}


@override
int get hashCode => Object.hash(runtimeType,message);

@override
String toString() {
  return 'ApiError.loginInvalidKeyFormat(message: $message)';
}


}

/// @nodoc
abstract mixin class $ApiError_LoginInvalidKeyFormatCopyWith<$Res> implements $ApiErrorCopyWith<$Res> {
  factory $ApiError_LoginInvalidKeyFormatCopyWith(ApiError_LoginInvalidKeyFormat value, $Res Function(ApiError_LoginInvalidKeyFormat) _then) = _$ApiError_LoginInvalidKeyFormatCopyWithImpl;
@useResult
$Res call({
 String message
});




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

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

/// Create a copy of ApiError
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline') $Res call({Object? message = null,}) {
  return _then(ApiError_LoginInvalidKeyFormat(
message: null == message ? _self.message : message // ignore: cast_nullable_to_non_nullable
as String,
  ));
}


}

/// @nodoc


class ApiError_LoginNoRelayConnections extends ApiError {
  const ApiError_LoginNoRelayConnections(): super._();
  






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


@override
int get hashCode => runtimeType.hashCode;

@override
String toString() {
  return 'ApiError.loginNoRelayConnections()';
}


}




/// @nodoc


class ApiError_LoginTimeout extends ApiError {
  const ApiError_LoginTimeout({required this.message}): super._();
  

 final  String message;

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



@override
bool operator ==(Object other) {
  return identical(this, other) || (other.runtimeType == runtimeType&&other is ApiError_LoginTimeout&&(identical(other.message, message) || other.message == message));
}


@override
int get hashCode => Object.hash(runtimeType,message);

@override
String toString() {
  return 'ApiError.loginTimeout(message: $message)';
}


}

/// @nodoc
abstract mixin class $ApiError_LoginTimeoutCopyWith<$Res> implements $ApiErrorCopyWith<$Res> {
  factory $ApiError_LoginTimeoutCopyWith(ApiError_LoginTimeout value, $Res Function(ApiError_LoginTimeout) _then) = _$ApiError_LoginTimeoutCopyWithImpl;
@useResult
$Res call({
 String message
});




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

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

/// Create a copy of ApiError
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline') $Res call({Object? message = null,}) {
  return _then(ApiError_LoginTimeout(
message: null == message ? _self.message : message // ignore: cast_nullable_to_non_nullable
as String,
  ));
}


}

/// @nodoc


class ApiError_LoginNoLoginInProgress extends ApiError {
  const ApiError_LoginNoLoginInProgress(): super._();
  






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


@override
int get hashCode => runtimeType.hashCode;

@override
String toString() {
  return 'ApiError.loginNoLoginInProgress()';
}


}




/// @nodoc


class ApiError_LoginInternal extends ApiError {
  const ApiError_LoginInternal({required this.message}): super._();
  

 final  String message;

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



@override
bool operator ==(Object other) {
  return identical(this, other) || (other.runtimeType == runtimeType&&other is ApiError_LoginInternal&&(identical(other.message, message) || other.message == message));
}


@override
int get hashCode => Object.hash(runtimeType,message);

@override
String toString() {
  return 'ApiError.loginInternal(message: $message)';
}


}

/// @nodoc
abstract mixin class $ApiError_LoginInternalCopyWith<$Res> implements $ApiErrorCopyWith<$Res> {
  factory $ApiError_LoginInternalCopyWith(ApiError_LoginInternal value, $Res Function(ApiError_LoginInternal) _then) = _$ApiError_LoginInternalCopyWithImpl;
@useResult
$Res call({
 String message
});




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

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

/// Create a copy of ApiError
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline') $Res call({Object? message = null,}) {
  return _then(ApiError_LoginInternal(
message: null == message ? _self.message : message // ignore: cast_nullable_to_non_nullable
as String,
  ));
}


}

/// @nodoc


class ApiError_LoginKeyringUnavailable extends ApiError {
  const ApiError_LoginKeyringUnavailable({required this.message}): super._();
  

 final  String message;

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



@override
bool operator ==(Object other) {
  return identical(this, other) || (other.runtimeType == runtimeType&&other is ApiError_LoginKeyringUnavailable&&(identical(other.message, message) || other.message == message));
}


@override
int get hashCode => Object.hash(runtimeType,message);

@override
String toString() {
  return 'ApiError.loginKeyringUnavailable(message: $message)';
}


}

/// @nodoc
abstract mixin class $ApiError_LoginKeyringUnavailableCopyWith<$Res> implements $ApiErrorCopyWith<$Res> {
  factory $ApiError_LoginKeyringUnavailableCopyWith(ApiError_LoginKeyringUnavailable value, $Res Function(ApiError_LoginKeyringUnavailable) _then) = _$ApiError_LoginKeyringUnavailableCopyWithImpl;
@useResult
$Res call({
 String message
});




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

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

/// Create a copy of ApiError
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline') $Res call({Object? message = null,}) {
  return _then(ApiError_LoginKeyringUnavailable(
message: null == message ? _self.message : message // ignore: cast_nullable_to_non_nullable
as String,
  ));
}


}

/// @nodoc


class ApiError_Other extends ApiError {
  const ApiError_Other({required this.message}): super._();
  

 final  String message;

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



@override
bool operator ==(Object other) {
  return identical(this, other) || (other.runtimeType == runtimeType&&other is ApiError_Other&&(identical(other.message, message) || other.message == message));
}


@override
int get hashCode => Object.hash(runtimeType,message);

@override
String toString() {
  return 'ApiError.other(message: $message)';
}


}

/// @nodoc
abstract mixin class $ApiError_OtherCopyWith<$Res> implements $ApiErrorCopyWith<$Res> {
  factory $ApiError_OtherCopyWith(ApiError_Other value, $Res Function(ApiError_Other) _then) = _$ApiError_OtherCopyWithImpl;
@useResult
$Res call({
 String message
});




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

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

/// Create a copy of ApiError
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline') $Res call({Object? message = null,}) {
  return _then(ApiError_Other(
message: null == message ? _self.message : message // ignore: cast_nullable_to_non_nullable
as String,
  ));
}


}

// dart format on
