mirrored_repositories/espresso-cash-public/packages/solana_seed_vault/lib/src
// 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

part of 'filter.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#custom-getters-and-methods');

/// @nodoc
mixin _$AccountFilter {
  @optionalTypeArgs
  TResult when<TResult extends Object?>(
    TResult Function() $default, {
    required TResult Function(int id) byId,
    required TResult Function(String name) byName,
    required TResult Function(Uri derivationPath) byDerivationPath,
    required TResult Function(String publicKeyEncoded) byPublicKeyEncoded,
    required TResult Function(bool isUserWallet) byIsUserWallet,
    required TResult Function(bool isValid) byIsValid,
  }) =>
      throw _privateConstructorUsedError;
  @optionalTypeArgs
  TResult? whenOrNull<TResult extends Object?>(
    TResult? Function()? $default, {
    TResult? Function(int id)? byId,
    TResult? Function(String name)? byName,
    TResult? Function(Uri derivationPath)? byDerivationPath,
    TResult? Function(String publicKeyEncoded)? byPublicKeyEncoded,
    TResult? Function(bool isUserWallet)? byIsUserWallet,
    TResult? Function(bool isValid)? byIsValid,
  }) =>
      throw _privateConstructorUsedError;
  @optionalTypeArgs
  TResult maybeWhen<TResult extends Object?>(
    TResult Function()? $default, {
    TResult Function(int id)? byId,
    TResult Function(String name)? byName,
    TResult Function(Uri derivationPath)? byDerivationPath,
    TResult Function(String publicKeyEncoded)? byPublicKeyEncoded,
    TResult Function(bool isUserWallet)? byIsUserWallet,
    TResult Function(bool isValid)? byIsValid,
    required TResult orElse(),
  }) =>
      throw _privateConstructorUsedError;
  @optionalTypeArgs
  TResult map<TResult extends Object?>(
    TResult Function(_AccountFilterNone value) $default, {
    required TResult Function(_AccountFilterId value) byId,
    required TResult Function(_AccountFilterName value) byName,
    required TResult Function(_AccountFilterDerivationPath value)
        byDerivationPath,
    required TResult Function(_AccountFilterPublicKeyEncoded value)
        byPublicKeyEncoded,
    required TResult Function(_AccountFilterIsUserWallet value) byIsUserWallet,
    required TResult Function(_AccountFilterIsValid value) byIsValid,
  }) =>
      throw _privateConstructorUsedError;
  @optionalTypeArgs
  TResult? mapOrNull<TResult extends Object?>(
    TResult? Function(_AccountFilterNone value)? $default, {
    TResult? Function(_AccountFilterId value)? byId,
    TResult? Function(_AccountFilterName value)? byName,
    TResult? Function(_AccountFilterDerivationPath value)? byDerivationPath,
    TResult? Function(_AccountFilterPublicKeyEncoded value)? byPublicKeyEncoded,
    TResult? Function(_AccountFilterIsUserWallet value)? byIsUserWallet,
    TResult? Function(_AccountFilterIsValid value)? byIsValid,
  }) =>
      throw _privateConstructorUsedError;
  @optionalTypeArgs
  TResult maybeMap<TResult extends Object?>(
    TResult Function(_AccountFilterNone value)? $default, {
    TResult Function(_AccountFilterId value)? byId,
    TResult Function(_AccountFilterName value)? byName,
    TResult Function(_AccountFilterDerivationPath value)? byDerivationPath,
    TResult Function(_AccountFilterPublicKeyEncoded value)? byPublicKeyEncoded,
    TResult Function(_AccountFilterIsUserWallet value)? byIsUserWallet,
    TResult Function(_AccountFilterIsValid value)? byIsValid,
    required TResult orElse(),
  }) =>
      throw _privateConstructorUsedError;
}

/// @nodoc
abstract class $AccountFilterCopyWith<$Res> {
  factory $AccountFilterCopyWith(
          AccountFilter value, $Res Function(AccountFilter) then) =
      _$AccountFilterCopyWithImpl<$Res, AccountFilter>;
}

/// @nodoc
class _$AccountFilterCopyWithImpl<$Res, $Val extends AccountFilter>
    implements $AccountFilterCopyWith<$Res> {
  _$AccountFilterCopyWithImpl(this._value, this._then);

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

/// @nodoc
abstract class _$$_AccountFilterNoneCopyWith<$Res> {
  factory _$$_AccountFilterNoneCopyWith(_$_AccountFilterNone value,
          $Res Function(_$_AccountFilterNone) then) =
      __$$_AccountFilterNoneCopyWithImpl<$Res>;
}

/// @nodoc
class __$$_AccountFilterNoneCopyWithImpl<$Res>
    extends _$AccountFilterCopyWithImpl<$Res, _$_AccountFilterNone>
    implements _$$_AccountFilterNoneCopyWith<$Res> {
  __$$_AccountFilterNoneCopyWithImpl(
      _$_AccountFilterNone _value, $Res Function(_$_AccountFilterNone) _then)
      : super(_value, _then);
}

/// @nodoc

class _$_AccountFilterNone implements _AccountFilterNone {
  const _$_AccountFilterNone();

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

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

  @override
  int get hashCode => runtimeType.hashCode;

  @override
  @optionalTypeArgs
  TResult when<TResult extends Object?>(
    TResult Function() $default, {
    required TResult Function(int id) byId,
    required TResult Function(String name) byName,
    required TResult Function(Uri derivationPath) byDerivationPath,
    required TResult Function(String publicKeyEncoded) byPublicKeyEncoded,
    required TResult Function(bool isUserWallet) byIsUserWallet,
    required TResult Function(bool isValid) byIsValid,
  }) {
    return $default();
  }

  @override
  @optionalTypeArgs
  TResult? whenOrNull<TResult extends Object?>(
    TResult? Function()? $default, {
    TResult? Function(int id)? byId,
    TResult? Function(String name)? byName,
    TResult? Function(Uri derivationPath)? byDerivationPath,
    TResult? Function(String publicKeyEncoded)? byPublicKeyEncoded,
    TResult? Function(bool isUserWallet)? byIsUserWallet,
    TResult? Function(bool isValid)? byIsValid,
  }) {
    return $default?.call();
  }

  @override
  @optionalTypeArgs
  TResult maybeWhen<TResult extends Object?>(
    TResult Function()? $default, {
    TResult Function(int id)? byId,
    TResult Function(String name)? byName,
    TResult Function(Uri derivationPath)? byDerivationPath,
    TResult Function(String publicKeyEncoded)? byPublicKeyEncoded,
    TResult Function(bool isUserWallet)? byIsUserWallet,
    TResult Function(bool isValid)? byIsValid,
    required TResult orElse(),
  }) {
    if ($default != null) {
      return $default();
    }
    return orElse();
  }

  @override
  @optionalTypeArgs
  TResult map<TResult extends Object?>(
    TResult Function(_AccountFilterNone value) $default, {
    required TResult Function(_AccountFilterId value) byId,
    required TResult Function(_AccountFilterName value) byName,
    required TResult Function(_AccountFilterDerivationPath value)
        byDerivationPath,
    required TResult Function(_AccountFilterPublicKeyEncoded value)
        byPublicKeyEncoded,
    required TResult Function(_AccountFilterIsUserWallet value) byIsUserWallet,
    required TResult Function(_AccountFilterIsValid value) byIsValid,
  }) {
    return $default(this);
  }

  @override
  @optionalTypeArgs
  TResult? mapOrNull<TResult extends Object?>(
    TResult? Function(_AccountFilterNone value)? $default, {
    TResult? Function(_AccountFilterId value)? byId,
    TResult? Function(_AccountFilterName value)? byName,
    TResult? Function(_AccountFilterDerivationPath value)? byDerivationPath,
    TResult? Function(_AccountFilterPublicKeyEncoded value)? byPublicKeyEncoded,
    TResult? Function(_AccountFilterIsUserWallet value)? byIsUserWallet,
    TResult? Function(_AccountFilterIsValid value)? byIsValid,
  }) {
    return $default?.call(this);
  }

  @override
  @optionalTypeArgs
  TResult maybeMap<TResult extends Object?>(
    TResult Function(_AccountFilterNone value)? $default, {
    TResult Function(_AccountFilterId value)? byId,
    TResult Function(_AccountFilterName value)? byName,
    TResult Function(_AccountFilterDerivationPath value)? byDerivationPath,
    TResult Function(_AccountFilterPublicKeyEncoded value)? byPublicKeyEncoded,
    TResult Function(_AccountFilterIsUserWallet value)? byIsUserWallet,
    TResult Function(_AccountFilterIsValid value)? byIsValid,
    required TResult orElse(),
  }) {
    if ($default != null) {
      return $default(this);
    }
    return orElse();
  }
}

abstract class _AccountFilterNone implements AccountFilter {
  const factory _AccountFilterNone() = _$_AccountFilterNone;
}

/// @nodoc
abstract class _$$_AccountFilterIdCopyWith<$Res> {
  factory _$$_AccountFilterIdCopyWith(
          _$_AccountFilterId value, $Res Function(_$_AccountFilterId) then) =
      __$$_AccountFilterIdCopyWithImpl<$Res>;
  @useResult
  $Res call({int id});
}

/// @nodoc
class __$$_AccountFilterIdCopyWithImpl<$Res>
    extends _$AccountFilterCopyWithImpl<$Res, _$_AccountFilterId>
    implements _$$_AccountFilterIdCopyWith<$Res> {
  __$$_AccountFilterIdCopyWithImpl(
      _$_AccountFilterId _value, $Res Function(_$_AccountFilterId) _then)
      : super(_value, _then);

  @pragma('vm:prefer-inline')
  @override
  $Res call({
    Object? id = null,
  }) {
    return _then(_$_AccountFilterId(
      null == id
          ? _value.id
          : id // ignore: cast_nullable_to_non_nullable
              as int,
    ));
  }
}

/// @nodoc

class _$_AccountFilterId implements _AccountFilterId {
  const _$_AccountFilterId(this.id);

  @override
  final int id;

  @override
  String toString() {
    return 'AccountFilter.byId(id: $id)';
  }

  @override
  bool operator ==(dynamic other) {
    return identical(this, other) ||
        (other.runtimeType == runtimeType &&
            other is _$_AccountFilterId &&
            (identical(other.id, id) || other.id == id));
  }

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

  @JsonKey(ignore: true)
  @override
  @pragma('vm:prefer-inline')
  _$$_AccountFilterIdCopyWith<_$_AccountFilterId> get copyWith =>
      __$$_AccountFilterIdCopyWithImpl<_$_AccountFilterId>(this, _$identity);

  @override
  @optionalTypeArgs
  TResult when<TResult extends Object?>(
    TResult Function() $default, {
    required TResult Function(int id) byId,
    required TResult Function(String name) byName,
    required TResult Function(Uri derivationPath) byDerivationPath,
    required TResult Function(String publicKeyEncoded) byPublicKeyEncoded,
    required TResult Function(bool isUserWallet) byIsUserWallet,
    required TResult Function(bool isValid) byIsValid,
  }) {
    return byId(id);
  }

  @override
  @optionalTypeArgs
  TResult? whenOrNull<TResult extends Object?>(
    TResult? Function()? $default, {
    TResult? Function(int id)? byId,
    TResult? Function(String name)? byName,
    TResult? Function(Uri derivationPath)? byDerivationPath,
    TResult? Function(String publicKeyEncoded)? byPublicKeyEncoded,
    TResult? Function(bool isUserWallet)? byIsUserWallet,
    TResult? Function(bool isValid)? byIsValid,
  }) {
    return byId?.call(id);
  }

  @override
  @optionalTypeArgs
  TResult maybeWhen<TResult extends Object?>(
    TResult Function()? $default, {
    TResult Function(int id)? byId,
    TResult Function(String name)? byName,
    TResult Function(Uri derivationPath)? byDerivationPath,
    TResult Function(String publicKeyEncoded)? byPublicKeyEncoded,
    TResult Function(bool isUserWallet)? byIsUserWallet,
    TResult Function(bool isValid)? byIsValid,
    required TResult orElse(),
  }) {
    if (byId != null) {
      return byId(id);
    }
    return orElse();
  }

  @override
  @optionalTypeArgs
  TResult map<TResult extends Object?>(
    TResult Function(_AccountFilterNone value) $default, {
    required TResult Function(_AccountFilterId value) byId,
    required TResult Function(_AccountFilterName value) byName,
    required TResult Function(_AccountFilterDerivationPath value)
        byDerivationPath,
    required TResult Function(_AccountFilterPublicKeyEncoded value)
        byPublicKeyEncoded,
    required TResult Function(_AccountFilterIsUserWallet value) byIsUserWallet,
    required TResult Function(_AccountFilterIsValid value) byIsValid,
  }) {
    return byId(this);
  }

  @override
  @optionalTypeArgs
  TResult? mapOrNull<TResult extends Object?>(
    TResult? Function(_AccountFilterNone value)? $default, {
    TResult? Function(_AccountFilterId value)? byId,
    TResult? Function(_AccountFilterName value)? byName,
    TResult? Function(_AccountFilterDerivationPath value)? byDerivationPath,
    TResult? Function(_AccountFilterPublicKeyEncoded value)? byPublicKeyEncoded,
    TResult? Function(_AccountFilterIsUserWallet value)? byIsUserWallet,
    TResult? Function(_AccountFilterIsValid value)? byIsValid,
  }) {
    return byId?.call(this);
  }

  @override
  @optionalTypeArgs
  TResult maybeMap<TResult extends Object?>(
    TResult Function(_AccountFilterNone value)? $default, {
    TResult Function(_AccountFilterId value)? byId,
    TResult Function(_AccountFilterName value)? byName,
    TResult Function(_AccountFilterDerivationPath value)? byDerivationPath,
    TResult Function(_AccountFilterPublicKeyEncoded value)? byPublicKeyEncoded,
    TResult Function(_AccountFilterIsUserWallet value)? byIsUserWallet,
    TResult Function(_AccountFilterIsValid value)? byIsValid,
    required TResult orElse(),
  }) {
    if (byId != null) {
      return byId(this);
    }
    return orElse();
  }
}

abstract class _AccountFilterId implements AccountFilter {
  const factory _AccountFilterId(final int id) = _$_AccountFilterId;

  int get id;
  @JsonKey(ignore: true)
  _$$_AccountFilterIdCopyWith<_$_AccountFilterId> get copyWith =>
      throw _privateConstructorUsedError;
}

/// @nodoc
abstract class _$$_AccountFilterNameCopyWith<$Res> {
  factory _$$_AccountFilterNameCopyWith(_$_AccountFilterName value,
          $Res Function(_$_AccountFilterName) then) =
      __$$_AccountFilterNameCopyWithImpl<$Res>;
  @useResult
  $Res call({String name});
}

/// @nodoc
class __$$_AccountFilterNameCopyWithImpl<$Res>
    extends _$AccountFilterCopyWithImpl<$Res, _$_AccountFilterName>
    implements _$$_AccountFilterNameCopyWith<$Res> {
  __$$_AccountFilterNameCopyWithImpl(
      _$_AccountFilterName _value, $Res Function(_$_AccountFilterName) _then)
      : super(_value, _then);

  @pragma('vm:prefer-inline')
  @override
  $Res call({
    Object? name = null,
  }) {
    return _then(_$_AccountFilterName(
      null == name
          ? _value.name
          : name // ignore: cast_nullable_to_non_nullable
              as String,
    ));
  }
}

/// @nodoc

class _$_AccountFilterName implements _AccountFilterName {
  const _$_AccountFilterName(this.name);

  @override
  final String name;

  @override
  String toString() {
    return 'AccountFilter.byName(name: $name)';
  }

  @override
  bool operator ==(dynamic other) {
    return identical(this, other) ||
        (other.runtimeType == runtimeType &&
            other is _$_AccountFilterName &&
            (identical(other.name, name) || other.name == name));
  }

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

  @JsonKey(ignore: true)
  @override
  @pragma('vm:prefer-inline')
  _$$_AccountFilterNameCopyWith<_$_AccountFilterName> get copyWith =>
      __$$_AccountFilterNameCopyWithImpl<_$_AccountFilterName>(
          this, _$identity);

  @override
  @optionalTypeArgs
  TResult when<TResult extends Object?>(
    TResult Function() $default, {
    required TResult Function(int id) byId,
    required TResult Function(String name) byName,
    required TResult Function(Uri derivationPath) byDerivationPath,
    required TResult Function(String publicKeyEncoded) byPublicKeyEncoded,
    required TResult Function(bool isUserWallet) byIsUserWallet,
    required TResult Function(bool isValid) byIsValid,
  }) {
    return byName(name);
  }

  @override
  @optionalTypeArgs
  TResult? whenOrNull<TResult extends Object?>(
    TResult? Function()? $default, {
    TResult? Function(int id)? byId,
    TResult? Function(String name)? byName,
    TResult? Function(Uri derivationPath)? byDerivationPath,
    TResult? Function(String publicKeyEncoded)? byPublicKeyEncoded,
    TResult? Function(bool isUserWallet)? byIsUserWallet,
    TResult? Function(bool isValid)? byIsValid,
  }) {
    return byName?.call(name);
  }

  @override
  @optionalTypeArgs
  TResult maybeWhen<TResult extends Object?>(
    TResult Function()? $default, {
    TResult Function(int id)? byId,
    TResult Function(String name)? byName,
    TResult Function(Uri derivationPath)? byDerivationPath,
    TResult Function(String publicKeyEncoded)? byPublicKeyEncoded,
    TResult Function(bool isUserWallet)? byIsUserWallet,
    TResult Function(bool isValid)? byIsValid,
    required TResult orElse(),
  }) {
    if (byName != null) {
      return byName(name);
    }
    return orElse();
  }

  @override
  @optionalTypeArgs
  TResult map<TResult extends Object?>(
    TResult Function(_AccountFilterNone value) $default, {
    required TResult Function(_AccountFilterId value) byId,
    required TResult Function(_AccountFilterName value) byName,
    required TResult Function(_AccountFilterDerivationPath value)
        byDerivationPath,
    required TResult Function(_AccountFilterPublicKeyEncoded value)
        byPublicKeyEncoded,
    required TResult Function(_AccountFilterIsUserWallet value) byIsUserWallet,
    required TResult Function(_AccountFilterIsValid value) byIsValid,
  }) {
    return byName(this);
  }

  @override
  @optionalTypeArgs
  TResult? mapOrNull<TResult extends Object?>(
    TResult? Function(_AccountFilterNone value)? $default, {
    TResult? Function(_AccountFilterId value)? byId,
    TResult? Function(_AccountFilterName value)? byName,
    TResult? Function(_AccountFilterDerivationPath value)? byDerivationPath,
    TResult? Function(_AccountFilterPublicKeyEncoded value)? byPublicKeyEncoded,
    TResult? Function(_AccountFilterIsUserWallet value)? byIsUserWallet,
    TResult? Function(_AccountFilterIsValid value)? byIsValid,
  }) {
    return byName?.call(this);
  }

  @override
  @optionalTypeArgs
  TResult maybeMap<TResult extends Object?>(
    TResult Function(_AccountFilterNone value)? $default, {
    TResult Function(_AccountFilterId value)? byId,
    TResult Function(_AccountFilterName value)? byName,
    TResult Function(_AccountFilterDerivationPath value)? byDerivationPath,
    TResult Function(_AccountFilterPublicKeyEncoded value)? byPublicKeyEncoded,
    TResult Function(_AccountFilterIsUserWallet value)? byIsUserWallet,
    TResult Function(_AccountFilterIsValid value)? byIsValid,
    required TResult orElse(),
  }) {
    if (byName != null) {
      return byName(this);
    }
    return orElse();
  }
}

abstract class _AccountFilterName implements AccountFilter {
  const factory _AccountFilterName(final String name) = _$_AccountFilterName;

  String get name;
  @JsonKey(ignore: true)
  _$$_AccountFilterNameCopyWith<_$_AccountFilterName> get copyWith =>
      throw _privateConstructorUsedError;
}

/// @nodoc
abstract class _$$_AccountFilterDerivationPathCopyWith<$Res> {
  factory _$$_AccountFilterDerivationPathCopyWith(
          _$_AccountFilterDerivationPath value,
          $Res Function(_$_AccountFilterDerivationPath) then) =
      __$$_AccountFilterDerivationPathCopyWithImpl<$Res>;
  @useResult
  $Res call({Uri derivationPath});
}

/// @nodoc
class __$$_AccountFilterDerivationPathCopyWithImpl<$Res>
    extends _$AccountFilterCopyWithImpl<$Res, _$_AccountFilterDerivationPath>
    implements _$$_AccountFilterDerivationPathCopyWith<$Res> {
  __$$_AccountFilterDerivationPathCopyWithImpl(
      _$_AccountFilterDerivationPath _value,
      $Res Function(_$_AccountFilterDerivationPath) _then)
      : super(_value, _then);

  @pragma('vm:prefer-inline')
  @override
  $Res call({
    Object? derivationPath = null,
  }) {
    return _then(_$_AccountFilterDerivationPath(
      null == derivationPath
          ? _value.derivationPath
          : derivationPath // ignore: cast_nullable_to_non_nullable
              as Uri,
    ));
  }
}

/// @nodoc

class _$_AccountFilterDerivationPath implements _AccountFilterDerivationPath {
  const _$_AccountFilterDerivationPath(this.derivationPath);

  @override
  final Uri derivationPath;

  @override
  String toString() {
    return 'AccountFilter.byDerivationPath(derivationPath: $derivationPath)';
  }

  @override
  bool operator ==(dynamic other) {
    return identical(this, other) ||
        (other.runtimeType == runtimeType &&
            other is _$_AccountFilterDerivationPath &&
            (identical(other.derivationPath, derivationPath) ||
                other.derivationPath == derivationPath));
  }

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

  @JsonKey(ignore: true)
  @override
  @pragma('vm:prefer-inline')
  _$$_AccountFilterDerivationPathCopyWith<_$_AccountFilterDerivationPath>
      get copyWith => __$$_AccountFilterDerivationPathCopyWithImpl<
          _$_AccountFilterDerivationPath>(this, _$identity);

  @override
  @optionalTypeArgs
  TResult when<TResult extends Object?>(
    TResult Function() $default, {
    required TResult Function(int id) byId,
    required TResult Function(String name) byName,
    required TResult Function(Uri derivationPath) byDerivationPath,
    required TResult Function(String publicKeyEncoded) byPublicKeyEncoded,
    required TResult Function(bool isUserWallet) byIsUserWallet,
    required TResult Function(bool isValid) byIsValid,
  }) {
    return byDerivationPath(derivationPath);
  }

  @override
  @optionalTypeArgs
  TResult? whenOrNull<TResult extends Object?>(
    TResult? Function()? $default, {
    TResult? Function(int id)? byId,
    TResult? Function(String name)? byName,
    TResult? Function(Uri derivationPath)? byDerivationPath,
    TResult? Function(String publicKeyEncoded)? byPublicKeyEncoded,
    TResult? Function(bool isUserWallet)? byIsUserWallet,
    TResult? Function(bool isValid)? byIsValid,
  }) {
    return byDerivationPath?.call(derivationPath);
  }

  @override
  @optionalTypeArgs
  TResult maybeWhen<TResult extends Object?>(
    TResult Function()? $default, {
    TResult Function(int id)? byId,
    TResult Function(String name)? byName,
    TResult Function(Uri derivationPath)? byDerivationPath,
    TResult Function(String publicKeyEncoded)? byPublicKeyEncoded,
    TResult Function(bool isUserWallet)? byIsUserWallet,
    TResult Function(bool isValid)? byIsValid,
    required TResult orElse(),
  }) {
    if (byDerivationPath != null) {
      return byDerivationPath(derivationPath);
    }
    return orElse();
  }

  @override
  @optionalTypeArgs
  TResult map<TResult extends Object?>(
    TResult Function(_AccountFilterNone value) $default, {
    required TResult Function(_AccountFilterId value) byId,
    required TResult Function(_AccountFilterName value) byName,
    required TResult Function(_AccountFilterDerivationPath value)
        byDerivationPath,
    required TResult Function(_AccountFilterPublicKeyEncoded value)
        byPublicKeyEncoded,
    required TResult Function(_AccountFilterIsUserWallet value) byIsUserWallet,
    required TResult Function(_AccountFilterIsValid value) byIsValid,
  }) {
    return byDerivationPath(this);
  }

  @override
  @optionalTypeArgs
  TResult? mapOrNull<TResult extends Object?>(
    TResult? Function(_AccountFilterNone value)? $default, {
    TResult? Function(_AccountFilterId value)? byId,
    TResult? Function(_AccountFilterName value)? byName,
    TResult? Function(_AccountFilterDerivationPath value)? byDerivationPath,
    TResult? Function(_AccountFilterPublicKeyEncoded value)? byPublicKeyEncoded,
    TResult? Function(_AccountFilterIsUserWallet value)? byIsUserWallet,
    TResult? Function(_AccountFilterIsValid value)? byIsValid,
  }) {
    return byDerivationPath?.call(this);
  }

  @override
  @optionalTypeArgs
  TResult maybeMap<TResult extends Object?>(
    TResult Function(_AccountFilterNone value)? $default, {
    TResult Function(_AccountFilterId value)? byId,
    TResult Function(_AccountFilterName value)? byName,
    TResult Function(_AccountFilterDerivationPath value)? byDerivationPath,
    TResult Function(_AccountFilterPublicKeyEncoded value)? byPublicKeyEncoded,
    TResult Function(_AccountFilterIsUserWallet value)? byIsUserWallet,
    TResult Function(_AccountFilterIsValid value)? byIsValid,
    required TResult orElse(),
  }) {
    if (byDerivationPath != null) {
      return byDerivationPath(this);
    }
    return orElse();
  }
}

abstract class _AccountFilterDerivationPath implements AccountFilter {
  const factory _AccountFilterDerivationPath(final Uri derivationPath) =
      _$_AccountFilterDerivationPath;

  Uri get derivationPath;
  @JsonKey(ignore: true)
  _$$_AccountFilterDerivationPathCopyWith<_$_AccountFilterDerivationPath>
      get copyWith => throw _privateConstructorUsedError;
}

/// @nodoc
abstract class _$$_AccountFilterPublicKeyEncodedCopyWith<$Res> {
  factory _$$_AccountFilterPublicKeyEncodedCopyWith(
          _$_AccountFilterPublicKeyEncoded value,
          $Res Function(_$_AccountFilterPublicKeyEncoded) then) =
      __$$_AccountFilterPublicKeyEncodedCopyWithImpl<$Res>;
  @useResult
  $Res call({String publicKeyEncoded});
}

/// @nodoc
class __$$_AccountFilterPublicKeyEncodedCopyWithImpl<$Res>
    extends _$AccountFilterCopyWithImpl<$Res, _$_AccountFilterPublicKeyEncoded>
    implements _$$_AccountFilterPublicKeyEncodedCopyWith<$Res> {
  __$$_AccountFilterPublicKeyEncodedCopyWithImpl(
      _$_AccountFilterPublicKeyEncoded _value,
      $Res Function(_$_AccountFilterPublicKeyEncoded) _then)
      : super(_value, _then);

  @pragma('vm:prefer-inline')
  @override
  $Res call({
    Object? publicKeyEncoded = null,
  }) {
    return _then(_$_AccountFilterPublicKeyEncoded(
      null == publicKeyEncoded
          ? _value.publicKeyEncoded
          : publicKeyEncoded // ignore: cast_nullable_to_non_nullable
              as String,
    ));
  }
}

/// @nodoc

class _$_AccountFilterPublicKeyEncoded
    implements _AccountFilterPublicKeyEncoded {
  const _$_AccountFilterPublicKeyEncoded(this.publicKeyEncoded);

  @override
  final String publicKeyEncoded;

  @override
  String toString() {
    return 'AccountFilter.byPublicKeyEncoded(publicKeyEncoded: $publicKeyEncoded)';
  }

  @override
  bool operator ==(dynamic other) {
    return identical(this, other) ||
        (other.runtimeType == runtimeType &&
            other is _$_AccountFilterPublicKeyEncoded &&
            (identical(other.publicKeyEncoded, publicKeyEncoded) ||
                other.publicKeyEncoded == publicKeyEncoded));
  }

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

  @JsonKey(ignore: true)
  @override
  @pragma('vm:prefer-inline')
  _$$_AccountFilterPublicKeyEncodedCopyWith<_$_AccountFilterPublicKeyEncoded>
      get copyWith => __$$_AccountFilterPublicKeyEncodedCopyWithImpl<
          _$_AccountFilterPublicKeyEncoded>(this, _$identity);

  @override
  @optionalTypeArgs
  TResult when<TResult extends Object?>(
    TResult Function() $default, {
    required TResult Function(int id) byId,
    required TResult Function(String name) byName,
    required TResult Function(Uri derivationPath) byDerivationPath,
    required TResult Function(String publicKeyEncoded) byPublicKeyEncoded,
    required TResult Function(bool isUserWallet) byIsUserWallet,
    required TResult Function(bool isValid) byIsValid,
  }) {
    return byPublicKeyEncoded(publicKeyEncoded);
  }

  @override
  @optionalTypeArgs
  TResult? whenOrNull<TResult extends Object?>(
    TResult? Function()? $default, {
    TResult? Function(int id)? byId,
    TResult? Function(String name)? byName,
    TResult? Function(Uri derivationPath)? byDerivationPath,
    TResult? Function(String publicKeyEncoded)? byPublicKeyEncoded,
    TResult? Function(bool isUserWallet)? byIsUserWallet,
    TResult? Function(bool isValid)? byIsValid,
  }) {
    return byPublicKeyEncoded?.call(publicKeyEncoded);
  }

  @override
  @optionalTypeArgs
  TResult maybeWhen<TResult extends Object?>(
    TResult Function()? $default, {
    TResult Function(int id)? byId,
    TResult Function(String name)? byName,
    TResult Function(Uri derivationPath)? byDerivationPath,
    TResult Function(String publicKeyEncoded)? byPublicKeyEncoded,
    TResult Function(bool isUserWallet)? byIsUserWallet,
    TResult Function(bool isValid)? byIsValid,
    required TResult orElse(),
  }) {
    if (byPublicKeyEncoded != null) {
      return byPublicKeyEncoded(publicKeyEncoded);
    }
    return orElse();
  }

  @override
  @optionalTypeArgs
  TResult map<TResult extends Object?>(
    TResult Function(_AccountFilterNone value) $default, {
    required TResult Function(_AccountFilterId value) byId,
    required TResult Function(_AccountFilterName value) byName,
    required TResult Function(_AccountFilterDerivationPath value)
        byDerivationPath,
    required TResult Function(_AccountFilterPublicKeyEncoded value)
        byPublicKeyEncoded,
    required TResult Function(_AccountFilterIsUserWallet value) byIsUserWallet,
    required TResult Function(_AccountFilterIsValid value) byIsValid,
  }) {
    return byPublicKeyEncoded(this);
  }

  @override
  @optionalTypeArgs
  TResult? mapOrNull<TResult extends Object?>(
    TResult? Function(_AccountFilterNone value)? $default, {
    TResult? Function(_AccountFilterId value)? byId,
    TResult? Function(_AccountFilterName value)? byName,
    TResult? Function(_AccountFilterDerivationPath value)? byDerivationPath,
    TResult? Function(_AccountFilterPublicKeyEncoded value)? byPublicKeyEncoded,
    TResult? Function(_AccountFilterIsUserWallet value)? byIsUserWallet,
    TResult? Function(_AccountFilterIsValid value)? byIsValid,
  }) {
    return byPublicKeyEncoded?.call(this);
  }

  @override
  @optionalTypeArgs
  TResult maybeMap<TResult extends Object?>(
    TResult Function(_AccountFilterNone value)? $default, {
    TResult Function(_AccountFilterId value)? byId,
    TResult Function(_AccountFilterName value)? byName,
    TResult Function(_AccountFilterDerivationPath value)? byDerivationPath,
    TResult Function(_AccountFilterPublicKeyEncoded value)? byPublicKeyEncoded,
    TResult Function(_AccountFilterIsUserWallet value)? byIsUserWallet,
    TResult Function(_AccountFilterIsValid value)? byIsValid,
    required TResult orElse(),
  }) {
    if (byPublicKeyEncoded != null) {
      return byPublicKeyEncoded(this);
    }
    return orElse();
  }
}

abstract class _AccountFilterPublicKeyEncoded implements AccountFilter {
  const factory _AccountFilterPublicKeyEncoded(final String publicKeyEncoded) =
      _$_AccountFilterPublicKeyEncoded;

  String get publicKeyEncoded;
  @JsonKey(ignore: true)
  _$$_AccountFilterPublicKeyEncodedCopyWith<_$_AccountFilterPublicKeyEncoded>
      get copyWith => throw _privateConstructorUsedError;
}

/// @nodoc
abstract class _$$_AccountFilterIsUserWalletCopyWith<$Res> {
  factory _$$_AccountFilterIsUserWalletCopyWith(
          _$_AccountFilterIsUserWallet value,
          $Res Function(_$_AccountFilterIsUserWallet) then) =
      __$$_AccountFilterIsUserWalletCopyWithImpl<$Res>;
  @useResult
  $Res call({bool isUserWallet});
}

/// @nodoc
class __$$_AccountFilterIsUserWalletCopyWithImpl<$Res>
    extends _$AccountFilterCopyWithImpl<$Res, _$_AccountFilterIsUserWallet>
    implements _$$_AccountFilterIsUserWalletCopyWith<$Res> {
  __$$_AccountFilterIsUserWalletCopyWithImpl(
      _$_AccountFilterIsUserWallet _value,
      $Res Function(_$_AccountFilterIsUserWallet) _then)
      : super(_value, _then);

  @pragma('vm:prefer-inline')
  @override
  $Res call({
    Object? isUserWallet = null,
  }) {
    return _then(_$_AccountFilterIsUserWallet(
      null == isUserWallet
          ? _value.isUserWallet
          : isUserWallet // ignore: cast_nullable_to_non_nullable
              as bool,
    ));
  }
}

/// @nodoc

class _$_AccountFilterIsUserWallet implements _AccountFilterIsUserWallet {
  const _$_AccountFilterIsUserWallet(this.isUserWallet);

  @override
  final bool isUserWallet;

  @override
  String toString() {
    return 'AccountFilter.byIsUserWallet(isUserWallet: $isUserWallet)';
  }

  @override
  bool operator ==(dynamic other) {
    return identical(this, other) ||
        (other.runtimeType == runtimeType &&
            other is _$_AccountFilterIsUserWallet &&
            (identical(other.isUserWallet, isUserWallet) ||
                other.isUserWallet == isUserWallet));
  }

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

  @JsonKey(ignore: true)
  @override
  @pragma('vm:prefer-inline')
  _$$_AccountFilterIsUserWalletCopyWith<_$_AccountFilterIsUserWallet>
      get copyWith => __$$_AccountFilterIsUserWalletCopyWithImpl<
          _$_AccountFilterIsUserWallet>(this, _$identity);

  @override
  @optionalTypeArgs
  TResult when<TResult extends Object?>(
    TResult Function() $default, {
    required TResult Function(int id) byId,
    required TResult Function(String name) byName,
    required TResult Function(Uri derivationPath) byDerivationPath,
    required TResult Function(String publicKeyEncoded) byPublicKeyEncoded,
    required TResult Function(bool isUserWallet) byIsUserWallet,
    required TResult Function(bool isValid) byIsValid,
  }) {
    return byIsUserWallet(isUserWallet);
  }

  @override
  @optionalTypeArgs
  TResult? whenOrNull<TResult extends Object?>(
    TResult? Function()? $default, {
    TResult? Function(int id)? byId,
    TResult? Function(String name)? byName,
    TResult? Function(Uri derivationPath)? byDerivationPath,
    TResult? Function(String publicKeyEncoded)? byPublicKeyEncoded,
    TResult? Function(bool isUserWallet)? byIsUserWallet,
    TResult? Function(bool isValid)? byIsValid,
  }) {
    return byIsUserWallet?.call(isUserWallet);
  }

  @override
  @optionalTypeArgs
  TResult maybeWhen<TResult extends Object?>(
    TResult Function()? $default, {
    TResult Function(int id)? byId,
    TResult Function(String name)? byName,
    TResult Function(Uri derivationPath)? byDerivationPath,
    TResult Function(String publicKeyEncoded)? byPublicKeyEncoded,
    TResult Function(bool isUserWallet)? byIsUserWallet,
    TResult Function(bool isValid)? byIsValid,
    required TResult orElse(),
  }) {
    if (byIsUserWallet != null) {
      return byIsUserWallet(isUserWallet);
    }
    return orElse();
  }

  @override
  @optionalTypeArgs
  TResult map<TResult extends Object?>(
    TResult Function(_AccountFilterNone value) $default, {
    required TResult Function(_AccountFilterId value) byId,
    required TResult Function(_AccountFilterName value) byName,
    required TResult Function(_AccountFilterDerivationPath value)
        byDerivationPath,
    required TResult Function(_AccountFilterPublicKeyEncoded value)
        byPublicKeyEncoded,
    required TResult Function(_AccountFilterIsUserWallet value) byIsUserWallet,
    required TResult Function(_AccountFilterIsValid value) byIsValid,
  }) {
    return byIsUserWallet(this);
  }

  @override
  @optionalTypeArgs
  TResult? mapOrNull<TResult extends Object?>(
    TResult? Function(_AccountFilterNone value)? $default, {
    TResult? Function(_AccountFilterId value)? byId,
    TResult? Function(_AccountFilterName value)? byName,
    TResult? Function(_AccountFilterDerivationPath value)? byDerivationPath,
    TResult? Function(_AccountFilterPublicKeyEncoded value)? byPublicKeyEncoded,
    TResult? Function(_AccountFilterIsUserWallet value)? byIsUserWallet,
    TResult? Function(_AccountFilterIsValid value)? byIsValid,
  }) {
    return byIsUserWallet?.call(this);
  }

  @override
  @optionalTypeArgs
  TResult maybeMap<TResult extends Object?>(
    TResult Function(_AccountFilterNone value)? $default, {
    TResult Function(_AccountFilterId value)? byId,
    TResult Function(_AccountFilterName value)? byName,
    TResult Function(_AccountFilterDerivationPath value)? byDerivationPath,
    TResult Function(_AccountFilterPublicKeyEncoded value)? byPublicKeyEncoded,
    TResult Function(_AccountFilterIsUserWallet value)? byIsUserWallet,
    TResult Function(_AccountFilterIsValid value)? byIsValid,
    required TResult orElse(),
  }) {
    if (byIsUserWallet != null) {
      return byIsUserWallet(this);
    }
    return orElse();
  }
}

abstract class _AccountFilterIsUserWallet implements AccountFilter {
  const factory _AccountFilterIsUserWallet(final bool isUserWallet) =
      _$_AccountFilterIsUserWallet;

  bool get isUserWallet;
  @JsonKey(ignore: true)
  _$$_AccountFilterIsUserWalletCopyWith<_$_AccountFilterIsUserWallet>
      get copyWith => throw _privateConstructorUsedError;
}

/// @nodoc
abstract class _$$_AccountFilterIsValidCopyWith<$Res> {
  factory _$$_AccountFilterIsValidCopyWith(_$_AccountFilterIsValid value,
          $Res Function(_$_AccountFilterIsValid) then) =
      __$$_AccountFilterIsValidCopyWithImpl<$Res>;
  @useResult
  $Res call({bool isValid});
}

/// @nodoc
class __$$_AccountFilterIsValidCopyWithImpl<$Res>
    extends _$AccountFilterCopyWithImpl<$Res, _$_AccountFilterIsValid>
    implements _$$_AccountFilterIsValidCopyWith<$Res> {
  __$$_AccountFilterIsValidCopyWithImpl(_$_AccountFilterIsValid _value,
      $Res Function(_$_AccountFilterIsValid) _then)
      : super(_value, _then);

  @pragma('vm:prefer-inline')
  @override
  $Res call({
    Object? isValid = null,
  }) {
    return _then(_$_AccountFilterIsValid(
      null == isValid
          ? _value.isValid
          : isValid // ignore: cast_nullable_to_non_nullable
              as bool,
    ));
  }
}

/// @nodoc

class _$_AccountFilterIsValid implements _AccountFilterIsValid {
  const _$_AccountFilterIsValid(this.isValid);

  @override
  final bool isValid;

  @override
  String toString() {
    return 'AccountFilter.byIsValid(isValid: $isValid)';
  }

  @override
  bool operator ==(dynamic other) {
    return identical(this, other) ||
        (other.runtimeType == runtimeType &&
            other is _$_AccountFilterIsValid &&
            (identical(other.isValid, isValid) || other.isValid == isValid));
  }

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

  @JsonKey(ignore: true)
  @override
  @pragma('vm:prefer-inline')
  _$$_AccountFilterIsValidCopyWith<_$_AccountFilterIsValid> get copyWith =>
      __$$_AccountFilterIsValidCopyWithImpl<_$_AccountFilterIsValid>(
          this, _$identity);

  @override
  @optionalTypeArgs
  TResult when<TResult extends Object?>(
    TResult Function() $default, {
    required TResult Function(int id) byId,
    required TResult Function(String name) byName,
    required TResult Function(Uri derivationPath) byDerivationPath,
    required TResult Function(String publicKeyEncoded) byPublicKeyEncoded,
    required TResult Function(bool isUserWallet) byIsUserWallet,
    required TResult Function(bool isValid) byIsValid,
  }) {
    return byIsValid(isValid);
  }

  @override
  @optionalTypeArgs
  TResult? whenOrNull<TResult extends Object?>(
    TResult? Function()? $default, {
    TResult? Function(int id)? byId,
    TResult? Function(String name)? byName,
    TResult? Function(Uri derivationPath)? byDerivationPath,
    TResult? Function(String publicKeyEncoded)? byPublicKeyEncoded,
    TResult? Function(bool isUserWallet)? byIsUserWallet,
    TResult? Function(bool isValid)? byIsValid,
  }) {
    return byIsValid?.call(isValid);
  }

  @override
  @optionalTypeArgs
  TResult maybeWhen<TResult extends Object?>(
    TResult Function()? $default, {
    TResult Function(int id)? byId,
    TResult Function(String name)? byName,
    TResult Function(Uri derivationPath)? byDerivationPath,
    TResult Function(String publicKeyEncoded)? byPublicKeyEncoded,
    TResult Function(bool isUserWallet)? byIsUserWallet,
    TResult Function(bool isValid)? byIsValid,
    required TResult orElse(),
  }) {
    if (byIsValid != null) {
      return byIsValid(isValid);
    }
    return orElse();
  }

  @override
  @optionalTypeArgs
  TResult map<TResult extends Object?>(
    TResult Function(_AccountFilterNone value) $default, {
    required TResult Function(_AccountFilterId value) byId,
    required TResult Function(_AccountFilterName value) byName,
    required TResult Function(_AccountFilterDerivationPath value)
        byDerivationPath,
    required TResult Function(_AccountFilterPublicKeyEncoded value)
        byPublicKeyEncoded,
    required TResult Function(_AccountFilterIsUserWallet value) byIsUserWallet,
    required TResult Function(_AccountFilterIsValid value) byIsValid,
  }) {
    return byIsValid(this);
  }

  @override
  @optionalTypeArgs
  TResult? mapOrNull<TResult extends Object?>(
    TResult? Function(_AccountFilterNone value)? $default, {
    TResult? Function(_AccountFilterId value)? byId,
    TResult? Function(_AccountFilterName value)? byName,
    TResult? Function(_AccountFilterDerivationPath value)? byDerivationPath,
    TResult? Function(_AccountFilterPublicKeyEncoded value)? byPublicKeyEncoded,
    TResult? Function(_AccountFilterIsUserWallet value)? byIsUserWallet,
    TResult? Function(_AccountFilterIsValid value)? byIsValid,
  }) {
    return byIsValid?.call(this);
  }

  @override
  @optionalTypeArgs
  TResult maybeMap<TResult extends Object?>(
    TResult Function(_AccountFilterNone value)? $default, {
    TResult Function(_AccountFilterId value)? byId,
    TResult Function(_AccountFilterName value)? byName,
    TResult Function(_AccountFilterDerivationPath value)? byDerivationPath,
    TResult Function(_AccountFilterPublicKeyEncoded value)? byPublicKeyEncoded,
    TResult Function(_AccountFilterIsUserWallet value)? byIsUserWallet,
    TResult Function(_AccountFilterIsValid value)? byIsValid,
    required TResult orElse(),
  }) {
    if (byIsValid != null) {
      return byIsValid(this);
    }
    return orElse();
  }
}

abstract class _AccountFilterIsValid implements AccountFilter {
  const factory _AccountFilterIsValid(final bool isValid) =
      _$_AccountFilterIsValid;

  bool get isValid;
  @JsonKey(ignore: true)
  _$$_AccountFilterIsValidCopyWith<_$_AccountFilterIsValid> get copyWith =>
      throw _privateConstructorUsedError;
}
