mirrored_repositories/espresso-cash-public/packages/solana/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, unnecessary_question_mark

part of 'logs_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 _$LogsFilter {
  @optionalTypeArgs
  TResult when<TResult extends Object?>({
    required TResult Function() all,
    required TResult Function() allWithVotes,
    required TResult Function(List<String> pubKeys) mentions,
  }) =>
      throw _privateConstructorUsedError;
  @optionalTypeArgs
  TResult? whenOrNull<TResult extends Object?>({
    TResult? Function()? all,
    TResult? Function()? allWithVotes,
    TResult? Function(List<String> pubKeys)? mentions,
  }) =>
      throw _privateConstructorUsedError;
  @optionalTypeArgs
  TResult maybeWhen<TResult extends Object?>({
    TResult Function()? all,
    TResult Function()? allWithVotes,
    TResult Function(List<String> pubKeys)? mentions,
    required TResult orElse(),
  }) =>
      throw _privateConstructorUsedError;
  @optionalTypeArgs
  TResult map<TResult extends Object?>({
    required TResult Function(_LogsFilterAll value) all,
    required TResult Function(_LosgFilterAllWithVotes value) allWithVotes,
    required TResult Function(_LogsFilterMentions value) mentions,
  }) =>
      throw _privateConstructorUsedError;
  @optionalTypeArgs
  TResult? mapOrNull<TResult extends Object?>({
    TResult? Function(_LogsFilterAll value)? all,
    TResult? Function(_LosgFilterAllWithVotes value)? allWithVotes,
    TResult? Function(_LogsFilterMentions value)? mentions,
  }) =>
      throw _privateConstructorUsedError;
  @optionalTypeArgs
  TResult maybeMap<TResult extends Object?>({
    TResult Function(_LogsFilterAll value)? all,
    TResult Function(_LosgFilterAllWithVotes value)? allWithVotes,
    TResult Function(_LogsFilterMentions value)? mentions,
    required TResult orElse(),
  }) =>
      throw _privateConstructorUsedError;
}

/// @nodoc
abstract class $LogsFilterCopyWith<$Res> {
  factory $LogsFilterCopyWith(
          LogsFilter value, $Res Function(LogsFilter) then) =
      _$LogsFilterCopyWithImpl<$Res, LogsFilter>;
}

/// @nodoc
class _$LogsFilterCopyWithImpl<$Res, $Val extends LogsFilter>
    implements $LogsFilterCopyWith<$Res> {
  _$LogsFilterCopyWithImpl(this._value, this._then);

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

/// @nodoc
abstract class _$$LogsFilterAllImplCopyWith<$Res> {
  factory _$$LogsFilterAllImplCopyWith(
          _$LogsFilterAllImpl value, $Res Function(_$LogsFilterAllImpl) then) =
      __$$LogsFilterAllImplCopyWithImpl<$Res>;
}

/// @nodoc
class __$$LogsFilterAllImplCopyWithImpl<$Res>
    extends _$LogsFilterCopyWithImpl<$Res, _$LogsFilterAllImpl>
    implements _$$LogsFilterAllImplCopyWith<$Res> {
  __$$LogsFilterAllImplCopyWithImpl(
      _$LogsFilterAllImpl _value, $Res Function(_$LogsFilterAllImpl) _then)
      : super(_value, _then);
}

/// @nodoc

class _$LogsFilterAllImpl implements _LogsFilterAll {
  const _$LogsFilterAllImpl();

  @override
  String toString() {
    return 'LogsFilter.all()';
  }

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

  @override
  int get hashCode => runtimeType.hashCode;

  @override
  @optionalTypeArgs
  TResult when<TResult extends Object?>({
    required TResult Function() all,
    required TResult Function() allWithVotes,
    required TResult Function(List<String> pubKeys) mentions,
  }) {
    return all();
  }

  @override
  @optionalTypeArgs
  TResult? whenOrNull<TResult extends Object?>({
    TResult? Function()? all,
    TResult? Function()? allWithVotes,
    TResult? Function(List<String> pubKeys)? mentions,
  }) {
    return all?.call();
  }

  @override
  @optionalTypeArgs
  TResult maybeWhen<TResult extends Object?>({
    TResult Function()? all,
    TResult Function()? allWithVotes,
    TResult Function(List<String> pubKeys)? mentions,
    required TResult orElse(),
  }) {
    if (all != null) {
      return all();
    }
    return orElse();
  }

  @override
  @optionalTypeArgs
  TResult map<TResult extends Object?>({
    required TResult Function(_LogsFilterAll value) all,
    required TResult Function(_LosgFilterAllWithVotes value) allWithVotes,
    required TResult Function(_LogsFilterMentions value) mentions,
  }) {
    return all(this);
  }

  @override
  @optionalTypeArgs
  TResult? mapOrNull<TResult extends Object?>({
    TResult? Function(_LogsFilterAll value)? all,
    TResult? Function(_LosgFilterAllWithVotes value)? allWithVotes,
    TResult? Function(_LogsFilterMentions value)? mentions,
  }) {
    return all?.call(this);
  }

  @override
  @optionalTypeArgs
  TResult maybeMap<TResult extends Object?>({
    TResult Function(_LogsFilterAll value)? all,
    TResult Function(_LosgFilterAllWithVotes value)? allWithVotes,
    TResult Function(_LogsFilterMentions value)? mentions,
    required TResult orElse(),
  }) {
    if (all != null) {
      return all(this);
    }
    return orElse();
  }
}

abstract class _LogsFilterAll implements LogsFilter {
  const factory _LogsFilterAll() = _$LogsFilterAllImpl;
}

/// @nodoc
abstract class _$$LosgFilterAllWithVotesImplCopyWith<$Res> {
  factory _$$LosgFilterAllWithVotesImplCopyWith(
          _$LosgFilterAllWithVotesImpl value,
          $Res Function(_$LosgFilterAllWithVotesImpl) then) =
      __$$LosgFilterAllWithVotesImplCopyWithImpl<$Res>;
}

/// @nodoc
class __$$LosgFilterAllWithVotesImplCopyWithImpl<$Res>
    extends _$LogsFilterCopyWithImpl<$Res, _$LosgFilterAllWithVotesImpl>
    implements _$$LosgFilterAllWithVotesImplCopyWith<$Res> {
  __$$LosgFilterAllWithVotesImplCopyWithImpl(
      _$LosgFilterAllWithVotesImpl _value,
      $Res Function(_$LosgFilterAllWithVotesImpl) _then)
      : super(_value, _then);
}

/// @nodoc

class _$LosgFilterAllWithVotesImpl implements _LosgFilterAllWithVotes {
  const _$LosgFilterAllWithVotesImpl();

  @override
  String toString() {
    return 'LogsFilter.allWithVotes()';
  }

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

  @override
  int get hashCode => runtimeType.hashCode;

  @override
  @optionalTypeArgs
  TResult when<TResult extends Object?>({
    required TResult Function() all,
    required TResult Function() allWithVotes,
    required TResult Function(List<String> pubKeys) mentions,
  }) {
    return allWithVotes();
  }

  @override
  @optionalTypeArgs
  TResult? whenOrNull<TResult extends Object?>({
    TResult? Function()? all,
    TResult? Function()? allWithVotes,
    TResult? Function(List<String> pubKeys)? mentions,
  }) {
    return allWithVotes?.call();
  }

  @override
  @optionalTypeArgs
  TResult maybeWhen<TResult extends Object?>({
    TResult Function()? all,
    TResult Function()? allWithVotes,
    TResult Function(List<String> pubKeys)? mentions,
    required TResult orElse(),
  }) {
    if (allWithVotes != null) {
      return allWithVotes();
    }
    return orElse();
  }

  @override
  @optionalTypeArgs
  TResult map<TResult extends Object?>({
    required TResult Function(_LogsFilterAll value) all,
    required TResult Function(_LosgFilterAllWithVotes value) allWithVotes,
    required TResult Function(_LogsFilterMentions value) mentions,
  }) {
    return allWithVotes(this);
  }

  @override
  @optionalTypeArgs
  TResult? mapOrNull<TResult extends Object?>({
    TResult? Function(_LogsFilterAll value)? all,
    TResult? Function(_LosgFilterAllWithVotes value)? allWithVotes,
    TResult? Function(_LogsFilterMentions value)? mentions,
  }) {
    return allWithVotes?.call(this);
  }

  @override
  @optionalTypeArgs
  TResult maybeMap<TResult extends Object?>({
    TResult Function(_LogsFilterAll value)? all,
    TResult Function(_LosgFilterAllWithVotes value)? allWithVotes,
    TResult Function(_LogsFilterMentions value)? mentions,
    required TResult orElse(),
  }) {
    if (allWithVotes != null) {
      return allWithVotes(this);
    }
    return orElse();
  }
}

abstract class _LosgFilterAllWithVotes implements LogsFilter {
  const factory _LosgFilterAllWithVotes() = _$LosgFilterAllWithVotesImpl;
}

/// @nodoc
abstract class _$$LogsFilterMentionsImplCopyWith<$Res> {
  factory _$$LogsFilterMentionsImplCopyWith(_$LogsFilterMentionsImpl value,
          $Res Function(_$LogsFilterMentionsImpl) then) =
      __$$LogsFilterMentionsImplCopyWithImpl<$Res>;
  @useResult
  $Res call({List<String> pubKeys});
}

/// @nodoc
class __$$LogsFilterMentionsImplCopyWithImpl<$Res>
    extends _$LogsFilterCopyWithImpl<$Res, _$LogsFilterMentionsImpl>
    implements _$$LogsFilterMentionsImplCopyWith<$Res> {
  __$$LogsFilterMentionsImplCopyWithImpl(_$LogsFilterMentionsImpl _value,
      $Res Function(_$LogsFilterMentionsImpl) _then)
      : super(_value, _then);

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

/// @nodoc

class _$LogsFilterMentionsImpl implements _LogsFilterMentions {
  const _$LogsFilterMentionsImpl(final List<String> pubKeys)
      : _pubKeys = pubKeys;

  final List<String> _pubKeys;
  @override
  List<String> get pubKeys {
    if (_pubKeys is EqualUnmodifiableListView) return _pubKeys;
    // ignore: implicit_dynamic_type
    return EqualUnmodifiableListView(_pubKeys);
  }

  @override
  String toString() {
    return 'LogsFilter.mentions(pubKeys: $pubKeys)';
  }

  @override
  bool operator ==(Object other) {
    return identical(this, other) ||
        (other.runtimeType == runtimeType &&
            other is _$LogsFilterMentionsImpl &&
            const DeepCollectionEquality().equals(other._pubKeys, _pubKeys));
  }

  @override
  int get hashCode =>
      Object.hash(runtimeType, const DeepCollectionEquality().hash(_pubKeys));

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

  @override
  @optionalTypeArgs
  TResult when<TResult extends Object?>({
    required TResult Function() all,
    required TResult Function() allWithVotes,
    required TResult Function(List<String> pubKeys) mentions,
  }) {
    return mentions(pubKeys);
  }

  @override
  @optionalTypeArgs
  TResult? whenOrNull<TResult extends Object?>({
    TResult? Function()? all,
    TResult? Function()? allWithVotes,
    TResult? Function(List<String> pubKeys)? mentions,
  }) {
    return mentions?.call(pubKeys);
  }

  @override
  @optionalTypeArgs
  TResult maybeWhen<TResult extends Object?>({
    TResult Function()? all,
    TResult Function()? allWithVotes,
    TResult Function(List<String> pubKeys)? mentions,
    required TResult orElse(),
  }) {
    if (mentions != null) {
      return mentions(pubKeys);
    }
    return orElse();
  }

  @override
  @optionalTypeArgs
  TResult map<TResult extends Object?>({
    required TResult Function(_LogsFilterAll value) all,
    required TResult Function(_LosgFilterAllWithVotes value) allWithVotes,
    required TResult Function(_LogsFilterMentions value) mentions,
  }) {
    return mentions(this);
  }

  @override
  @optionalTypeArgs
  TResult? mapOrNull<TResult extends Object?>({
    TResult? Function(_LogsFilterAll value)? all,
    TResult? Function(_LosgFilterAllWithVotes value)? allWithVotes,
    TResult? Function(_LogsFilterMentions value)? mentions,
  }) {
    return mentions?.call(this);
  }

  @override
  @optionalTypeArgs
  TResult maybeMap<TResult extends Object?>({
    TResult Function(_LogsFilterAll value)? all,
    TResult Function(_LosgFilterAllWithVotes value)? allWithVotes,
    TResult Function(_LogsFilterMentions value)? mentions,
    required TResult orElse(),
  }) {
    if (mentions != null) {
      return mentions(this);
    }
    return orElse();
  }
}

abstract class _LogsFilterMentions implements LogsFilter {
  const factory _LogsFilterMentions(final List<String> pubKeys) =
      _$LogsFilterMentionsImpl;

  List<String> get pubKeys;
  @JsonKey(ignore: true)
  _$$LogsFilterMentionsImplCopyWith<_$LogsFilterMentionsImpl> get copyWith =>
      throw _privateConstructorUsedError;
}
