content: // 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 'api_result.dart';
  
  // **************************************************************************
  // FreezedGenerator
  // **************************************************************************
  
  T _$identity<T>(T value) => value;
  
  final _privateConstructorUsedError = UnsupportedError(
      'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models');
  
  /// @nodoc
  mixin _$ApiResult<T> {
    @optionalTypeArgs
    TResult when<TResult extends Object?>({
      required TResult Function(T data) success,
      required TResult Function(ErrorHandler errorHandler) failure,
    }) =>
        throw _privateConstructorUsedError;
    @optionalTypeArgs
    TResult? whenOrNull<TResult extends Object?>({
      TResult? Function(T data)? success,
      TResult? Function(ErrorHandler errorHandler)? failure,
    }) =>
        throw _privateConstructorUsedError;
    @optionalTypeArgs
    TResult maybeWhen<TResult extends Object?>({
      TResult Function(T data)? success,
      TResult Function(ErrorHandler errorHandler)? failure,
      required TResult orElse(),
    }) =>
        throw _privateConstructorUsedError;
    @optionalTypeArgs
    TResult map<TResult extends Object?>({
      required TResult Function(Success<T> value) success,
      required TResult Function(Failure<T> value) failure,
    }) =>
        throw _privateConstructorUsedError;
    @optionalTypeArgs
    TResult? mapOrNull<TResult extends Object?>({
      TResult? Function(Success<T> value)? success,
      TResult? Function(Failure<T> value)? failure,
    }) =>
        throw _privateConstructorUsedError;
    @optionalTypeArgs
    TResult maybeMap<TResult extends Object?>({
      TResult Function(Success<T> value)? success,
      TResult Function(Failure<T> value)? failure,
      required TResult orElse(),
    }) =>
        throw _privateConstructorUsedError;
  }
  
  /// @nodoc
  abstract class $ApiResultCopyWith<T, $Res> {
    factory $ApiResultCopyWith(
            ApiResult<T> value, $Res Function(ApiResult<T>) then) =
        _$ApiResultCopyWithImpl<T, $Res, ApiResult<T>>;
  }
  
  /// @nodoc
  class _$ApiResultCopyWithImpl<T, $Res, $Val extends ApiResult<T>>
      implements $ApiResultCopyWith<T, $Res> {
    _$ApiResultCopyWithImpl(this._value, this._then);
  
    // ignore: unused_field
    final $Val _value;
    // ignore: unused_field
    final $Res Function($Val) _then;
  }
  
  /// @nodoc
  abstract class _$$SuccessImplCopyWith<T, $Res> {
    factory _$$SuccessImplCopyWith(
            _$SuccessImpl<T> value, $Res Function(_$SuccessImpl<T>) then) =
        __$$SuccessImplCopyWithImpl<T, $Res>;
    @useResult
    $Res call({T data});
  }
  
  /// @nodoc
  class __$$SuccessImplCopyWithImpl<T, $Res>
      extends _$ApiResultCopyWithImpl<T, $Res, _$SuccessImpl<T>>
      implements _$$SuccessImplCopyWith<T, $Res> {
    __$$SuccessImplCopyWithImpl(
        _$SuccessImpl<T> _value, $Res Function(_$SuccessImpl<T>) _then)
        : super(_value, _then);
  
    @pragma('vm:prefer-inline')
    @override
    $Res call({
      Object? data = freezed,
    }) {
      return _then(_$SuccessImpl<T>(
        freezed == data
            ? _value.data
            : data // ignore: cast_nullable_to_non_nullable
                as T,
      ));
    }
  }
  
  /// @nodoc
  
  class _$SuccessImpl<T> implements Success<T> {
    const _$SuccessImpl(this.data);
  
    @override
    final T data;
  
    @override
    String toString() {
      return 'ApiResult<$T>.success(data: $data)';
    }
  
    @override
    bool operator ==(Object other) {
      return identical(this, other) ||
          (other.runtimeType == runtimeType &&
              other is _$SuccessImpl<T> &&
              const DeepCollectionEquality().equals(other.data, data));
    }
  
    @override
    int get hashCode =>
        Object.hash(runtimeType, const DeepCollectionEquality().hash(data));
  
    @JsonKey(ignore: true)
    @override
    @pragma('vm:prefer-inline')
    _$$SuccessImplCopyWith<T, _$SuccessImpl<T>> get copyWith =>
        __$$SuccessImplCopyWithImpl<T, _$SuccessImpl<T>>(this, _$identity);
  
    @override
    @optionalTypeArgs
    TResult when<TResult extends Object?>({
      required TResult Function(T data) success,
      required TResult Function(ErrorHandler errorHandler) failure,
    }) {
      return success(data);
    }
  
    @override
    @optionalTypeArgs
    TResult? whenOrNull<TResult extends Object?>({
      TResult? Function(T data)? success,
      TResult? Function(ErrorHandler errorHandler)? failure,
    }) {
      return success?.call(data);
    }
  
    @override
    @optionalTypeArgs
    TResult maybeWhen<TResult extends Object?>({
      TResult Function(T data)? success,
      TResult Function(ErrorHandler errorHandler)? failure,
      required TResult orElse(),
    }) {
      if (success != null) {
        return success(data);
      }
      return orElse();
    }
  
    @override
    @optionalTypeArgs
    TResult map<TResult extends Object?>({
      required TResult Function(Success<T> value) success,
      required TResult Function(Failure<T> value) failure,
    }) {
      return success(this);
    }
  
    @override
    @optionalTypeArgs
    TResult? mapOrNull<TResult extends Object?>({
      TResult? Function(Success<T> value)? success,
      TResult? Function(Failure<T> value)? failure,
    }) {
      return success?.call(this);
    }
  
    @override
    @optionalTypeArgs
    TResult maybeMap<TResult extends Object?>({
      TResult Function(Success<T> value)? success,
      TResult Function(Failure<T> value)? failure,
      required TResult orElse(),
    }) {
      if (success != null) {
        return success(this);
      }
      return orElse();
    }
  }
  
  abstract class Success<T> implements ApiResult<T> {
    const factory Success(final T data) = _$SuccessImpl<T>;
  
    T get data;
    @JsonKey(ignore: true)
    _$$SuccessImplCopyWith<T, _$SuccessImpl<T>> get copyWith =>
        throw _privateConstructorUsedError;
  }
  
  /// @nodoc
  abstract class _$$FailureImplCopyWith<T, $Res> {
    factory _$$FailureImplCopyWith(
            _$FailureImpl<T> value, $Res Function(_$FailureImpl<T>) then) =
        __$$FailureImplCopyWithImpl<T, $Res>;
    @useResult
    $Res call({ErrorHandler errorHandler});
  }
  
  /// @nodoc
  class __$$FailureImplCopyWithImpl<T, $Res>
      extends _$ApiResultCopyWithImpl<T, $Res, _$FailureImpl<T>>
      implements _$$FailureImplCopyWith<T, $Res> {
    __$$FailureImplCopyWithImpl(
        _$FailureImpl<T> _value, $Res Function(_$FailureImpl<T>) _then)
        : super(_value, _then);
  
    @pragma('vm:prefer-inline')
    @override
    $Res call({
      Object? errorHandler = null,
    }) {
      return _then(_$FailureImpl<T>(
        null == errorHandler
            ? _value.errorHandler
            : errorHandler // ignore: cast_nullable_to_non_nullable
                as ErrorHandler,
      ));
    }
  }
  
  /// @nodoc
  
  class _$FailureImpl<T> implements Failure<T> {
    const _$FailureImpl(this.errorHandler);
  
    @override
    final ErrorHandler errorHandler;
  
    @override
    String toString() {
      return 'ApiResult<$T>.failure(errorHandler: $errorHandler)';
    }
  
    @override
    bool operator ==(Object other) {
      return identical(this, other) ||
          (other.runtimeType == runtimeType &&
              other is _$FailureImpl<T> &&
              (identical(other.errorHandler, errorHandler) ||
                  other.errorHandler == errorHandler));
    }
  
    @override
    int get hashCode => Object.hash(runtimeType, errorHandler);
  
    @JsonKey(ignore: true)
    @override
    @pragma('vm:prefer-inline')
    _$$FailureImplCopyWith<T, _$FailureImpl<T>> get copyWith =>
        __$$FailureImplCopyWithImpl<T, _$FailureImpl<T>>(this, _$identity);
  
    @override
    @optionalTypeArgs
    TResult when<TResult extends Object?>({
      required TResult Function(T data) success,
      required TResult Function(ErrorHandler errorHandler) failure,
    }) {
      return failure(errorHandler);
    }
  
    @override
    @optionalTypeArgs
    TResult? whenOrNull<TResult extends Object?>({
      TResult? Function(T data)? success,
      TResult? Function(ErrorHandler errorHandler)? failure,
    }) {
      return failure?.call(errorHandler);
    }
  
    @override
    @optionalTypeArgs
    TResult maybeWhen<TResult extends Object?>({
      TResult Function(T data)? success,
      TResult Function(ErrorHandler errorHandler)? failure,
      required TResult orElse(),
    }) {
      if (failure != null) {
        return failure(errorHandler);
      }
      return orElse();
    }
  
    @override
    @optionalTypeArgs
    TResult map<TResult extends Object?>({
      required TResult Function(Success<T> value) success,
      required TResult Function(Failure<T> value) failure,
    }) {
      return failure(this);
    }
  
    @override
    @optionalTypeArgs
    TResult? mapOrNull<TResult extends Object?>({
      TResult? Function(Success<T> value)? success,
      TResult? Function(Failure<T> value)? failure,
    }) {
      return failure?.call(this);
    }
  
    @override
    @optionalTypeArgs
    TResult maybeMap<TResult extends Object?>({
      TResult Function(Success<T> value)? success,
      TResult Function(Failure<T> value)? failure,
      required TResult orElse(),
    }) {
      if (failure != null) {
        return failure(this);
      }
      return orElse();
    }
  }
  
  abstract class Failure<T> implements ApiResult<T> {
    const factory Failure(final ErrorHandler errorHandler) = _$FailureImpl<T>;
  
    ErrorHandler get errorHandler;
    @JsonKey(ignore: true)
    _$$FailureImplCopyWith<T, _$FailureImpl<T>> get copyWith =>
        throw _privateConstructorUsedError;
  }
  