// 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 'media_chat_state.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 _$MediaChatLoadingState {
  @optionalTypeArgs
  TResult when<TResult extends Object?>({
    required TResult Function() notYetStarted,
    required TResult Function() loading,
    required TResult Function() loaded,
    required TResult Function(String? error) error,
  }) => throw _privateConstructorUsedError;
  @optionalTypeArgs
  TResult? whenOrNull<TResult extends Object?>({
    TResult? Function()? notYetStarted,
    TResult? Function()? loading,
    TResult? Function()? loaded,
    TResult? Function(String? error)? error,
  }) => throw _privateConstructorUsedError;
  @optionalTypeArgs
  TResult maybeWhen<TResult extends Object?>({
    TResult Function()? notYetStarted,
    TResult Function()? loading,
    TResult Function()? loaded,
    TResult Function(String? error)? error,
    required TResult orElse(),
  }) => throw _privateConstructorUsedError;
  @optionalTypeArgs
  TResult map<TResult extends Object?>({
    required TResult Function(_MediaChatLoadingStateNotYetStarted value)
    notYetStarted,
    required TResult Function(_MediaChatLoadingStateLoading value) loading,
    required TResult Function(_MediaChatLoadingStateLoaded value) loaded,
    required TResult Function(_MediaChatLoadingStateError value) error,
  }) => throw _privateConstructorUsedError;
  @optionalTypeArgs
  TResult? mapOrNull<TResult extends Object?>({
    TResult? Function(_MediaChatLoadingStateNotYetStarted value)? notYetStarted,
    TResult? Function(_MediaChatLoadingStateLoading value)? loading,
    TResult? Function(_MediaChatLoadingStateLoaded value)? loaded,
    TResult? Function(_MediaChatLoadingStateError value)? error,
  }) => throw _privateConstructorUsedError;
  @optionalTypeArgs
  TResult maybeMap<TResult extends Object?>({
    TResult Function(_MediaChatLoadingStateNotYetStarted value)? notYetStarted,
    TResult Function(_MediaChatLoadingStateLoading value)? loading,
    TResult Function(_MediaChatLoadingStateLoaded value)? loaded,
    TResult Function(_MediaChatLoadingStateError value)? error,
    required TResult orElse(),
  }) => throw _privateConstructorUsedError;
}

/// @nodoc
abstract class $MediaChatLoadingStateCopyWith<$Res> {
  factory $MediaChatLoadingStateCopyWith(
    MediaChatLoadingState value,
    $Res Function(MediaChatLoadingState) then,
  ) = _$MediaChatLoadingStateCopyWithImpl<$Res, MediaChatLoadingState>;
}

/// @nodoc
class _$MediaChatLoadingStateCopyWithImpl<
  $Res,
  $Val extends MediaChatLoadingState
>
    implements $MediaChatLoadingStateCopyWith<$Res> {
  _$MediaChatLoadingStateCopyWithImpl(this._value, this._then);

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

  /// Create a copy of MediaChatLoadingState
  /// with the given fields replaced by the non-null parameter values.
}

/// @nodoc
abstract class _$$MediaChatLoadingStateNotYetStartedImplCopyWith<$Res> {
  factory _$$MediaChatLoadingStateNotYetStartedImplCopyWith(
    _$MediaChatLoadingStateNotYetStartedImpl value,
    $Res Function(_$MediaChatLoadingStateNotYetStartedImpl) then,
  ) = __$$MediaChatLoadingStateNotYetStartedImplCopyWithImpl<$Res>;
}

/// @nodoc
class __$$MediaChatLoadingStateNotYetStartedImplCopyWithImpl<$Res>
    extends
        _$MediaChatLoadingStateCopyWithImpl<
          $Res,
          _$MediaChatLoadingStateNotYetStartedImpl
        >
    implements _$$MediaChatLoadingStateNotYetStartedImplCopyWith<$Res> {
  __$$MediaChatLoadingStateNotYetStartedImplCopyWithImpl(
    _$MediaChatLoadingStateNotYetStartedImpl _value,
    $Res Function(_$MediaChatLoadingStateNotYetStartedImpl) _then,
  ) : super(_value, _then);

  /// Create a copy of MediaChatLoadingState
  /// with the given fields replaced by the non-null parameter values.
}

/// @nodoc

class _$MediaChatLoadingStateNotYetStartedImpl
    implements _MediaChatLoadingStateNotYetStarted {
  const _$MediaChatLoadingStateNotYetStartedImpl();

  @override
  String toString() {
    return 'MediaChatLoadingState.notYetStarted()';
  }

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

  @override
  int get hashCode => runtimeType.hashCode;

  @override
  @optionalTypeArgs
  TResult when<TResult extends Object?>({
    required TResult Function() notYetStarted,
    required TResult Function() loading,
    required TResult Function() loaded,
    required TResult Function(String? error) error,
  }) {
    return notYetStarted();
  }

  @override
  @optionalTypeArgs
  TResult? whenOrNull<TResult extends Object?>({
    TResult? Function()? notYetStarted,
    TResult? Function()? loading,
    TResult? Function()? loaded,
    TResult? Function(String? error)? error,
  }) {
    return notYetStarted?.call();
  }

  @override
  @optionalTypeArgs
  TResult maybeWhen<TResult extends Object?>({
    TResult Function()? notYetStarted,
    TResult Function()? loading,
    TResult Function()? loaded,
    TResult Function(String? error)? error,
    required TResult orElse(),
  }) {
    if (notYetStarted != null) {
      return notYetStarted();
    }
    return orElse();
  }

  @override
  @optionalTypeArgs
  TResult map<TResult extends Object?>({
    required TResult Function(_MediaChatLoadingStateNotYetStarted value)
    notYetStarted,
    required TResult Function(_MediaChatLoadingStateLoading value) loading,
    required TResult Function(_MediaChatLoadingStateLoaded value) loaded,
    required TResult Function(_MediaChatLoadingStateError value) error,
  }) {
    return notYetStarted(this);
  }

  @override
  @optionalTypeArgs
  TResult? mapOrNull<TResult extends Object?>({
    TResult? Function(_MediaChatLoadingStateNotYetStarted value)? notYetStarted,
    TResult? Function(_MediaChatLoadingStateLoading value)? loading,
    TResult? Function(_MediaChatLoadingStateLoaded value)? loaded,
    TResult? Function(_MediaChatLoadingStateError value)? error,
  }) {
    return notYetStarted?.call(this);
  }

  @override
  @optionalTypeArgs
  TResult maybeMap<TResult extends Object?>({
    TResult Function(_MediaChatLoadingStateNotYetStarted value)? notYetStarted,
    TResult Function(_MediaChatLoadingStateLoading value)? loading,
    TResult Function(_MediaChatLoadingStateLoaded value)? loaded,
    TResult Function(_MediaChatLoadingStateError value)? error,
    required TResult orElse(),
  }) {
    if (notYetStarted != null) {
      return notYetStarted(this);
    }
    return orElse();
  }
}

abstract class _MediaChatLoadingStateNotYetStarted
    implements MediaChatLoadingState {
  const factory _MediaChatLoadingStateNotYetStarted() =
      _$MediaChatLoadingStateNotYetStartedImpl;
}

/// @nodoc
abstract class _$$MediaChatLoadingStateLoadingImplCopyWith<$Res> {
  factory _$$MediaChatLoadingStateLoadingImplCopyWith(
    _$MediaChatLoadingStateLoadingImpl value,
    $Res Function(_$MediaChatLoadingStateLoadingImpl) then,
  ) = __$$MediaChatLoadingStateLoadingImplCopyWithImpl<$Res>;
}

/// @nodoc
class __$$MediaChatLoadingStateLoadingImplCopyWithImpl<$Res>
    extends
        _$MediaChatLoadingStateCopyWithImpl<
          $Res,
          _$MediaChatLoadingStateLoadingImpl
        >
    implements _$$MediaChatLoadingStateLoadingImplCopyWith<$Res> {
  __$$MediaChatLoadingStateLoadingImplCopyWithImpl(
    _$MediaChatLoadingStateLoadingImpl _value,
    $Res Function(_$MediaChatLoadingStateLoadingImpl) _then,
  ) : super(_value, _then);

  /// Create a copy of MediaChatLoadingState
  /// with the given fields replaced by the non-null parameter values.
}

/// @nodoc

class _$MediaChatLoadingStateLoadingImpl
    implements _MediaChatLoadingStateLoading {
  const _$MediaChatLoadingStateLoadingImpl();

  @override
  String toString() {
    return 'MediaChatLoadingState.loading()';
  }

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

  @override
  int get hashCode => runtimeType.hashCode;

  @override
  @optionalTypeArgs
  TResult when<TResult extends Object?>({
    required TResult Function() notYetStarted,
    required TResult Function() loading,
    required TResult Function() loaded,
    required TResult Function(String? error) error,
  }) {
    return loading();
  }

  @override
  @optionalTypeArgs
  TResult? whenOrNull<TResult extends Object?>({
    TResult? Function()? notYetStarted,
    TResult? Function()? loading,
    TResult? Function()? loaded,
    TResult? Function(String? error)? error,
  }) {
    return loading?.call();
  }

  @override
  @optionalTypeArgs
  TResult maybeWhen<TResult extends Object?>({
    TResult Function()? notYetStarted,
    TResult Function()? loading,
    TResult Function()? loaded,
    TResult Function(String? error)? error,
    required TResult orElse(),
  }) {
    if (loading != null) {
      return loading();
    }
    return orElse();
  }

  @override
  @optionalTypeArgs
  TResult map<TResult extends Object?>({
    required TResult Function(_MediaChatLoadingStateNotYetStarted value)
    notYetStarted,
    required TResult Function(_MediaChatLoadingStateLoading value) loading,
    required TResult Function(_MediaChatLoadingStateLoaded value) loaded,
    required TResult Function(_MediaChatLoadingStateError value) error,
  }) {
    return loading(this);
  }

  @override
  @optionalTypeArgs
  TResult? mapOrNull<TResult extends Object?>({
    TResult? Function(_MediaChatLoadingStateNotYetStarted value)? notYetStarted,
    TResult? Function(_MediaChatLoadingStateLoading value)? loading,
    TResult? Function(_MediaChatLoadingStateLoaded value)? loaded,
    TResult? Function(_MediaChatLoadingStateError value)? error,
  }) {
    return loading?.call(this);
  }

  @override
  @optionalTypeArgs
  TResult maybeMap<TResult extends Object?>({
    TResult Function(_MediaChatLoadingStateNotYetStarted value)? notYetStarted,
    TResult Function(_MediaChatLoadingStateLoading value)? loading,
    TResult Function(_MediaChatLoadingStateLoaded value)? loaded,
    TResult Function(_MediaChatLoadingStateError value)? error,
    required TResult orElse(),
  }) {
    if (loading != null) {
      return loading(this);
    }
    return orElse();
  }
}

abstract class _MediaChatLoadingStateLoading implements MediaChatLoadingState {
  const factory _MediaChatLoadingStateLoading() =
      _$MediaChatLoadingStateLoadingImpl;
}

/// @nodoc
abstract class _$$MediaChatLoadingStateLoadedImplCopyWith<$Res> {
  factory _$$MediaChatLoadingStateLoadedImplCopyWith(
    _$MediaChatLoadingStateLoadedImpl value,
    $Res Function(_$MediaChatLoadingStateLoadedImpl) then,
  ) = __$$MediaChatLoadingStateLoadedImplCopyWithImpl<$Res>;
}

/// @nodoc
class __$$MediaChatLoadingStateLoadedImplCopyWithImpl<$Res>
    extends
        _$MediaChatLoadingStateCopyWithImpl<
          $Res,
          _$MediaChatLoadingStateLoadedImpl
        >
    implements _$$MediaChatLoadingStateLoadedImplCopyWith<$Res> {
  __$$MediaChatLoadingStateLoadedImplCopyWithImpl(
    _$MediaChatLoadingStateLoadedImpl _value,
    $Res Function(_$MediaChatLoadingStateLoadedImpl) _then,
  ) : super(_value, _then);

  /// Create a copy of MediaChatLoadingState
  /// with the given fields replaced by the non-null parameter values.
}

/// @nodoc

class _$MediaChatLoadingStateLoadedImpl
    implements _MediaChatLoadingStateLoaded {
  const _$MediaChatLoadingStateLoadedImpl();

  @override
  String toString() {
    return 'MediaChatLoadingState.loaded()';
  }

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

  @override
  int get hashCode => runtimeType.hashCode;

  @override
  @optionalTypeArgs
  TResult when<TResult extends Object?>({
    required TResult Function() notYetStarted,
    required TResult Function() loading,
    required TResult Function() loaded,
    required TResult Function(String? error) error,
  }) {
    return loaded();
  }

  @override
  @optionalTypeArgs
  TResult? whenOrNull<TResult extends Object?>({
    TResult? Function()? notYetStarted,
    TResult? Function()? loading,
    TResult? Function()? loaded,
    TResult? Function(String? error)? error,
  }) {
    return loaded?.call();
  }

  @override
  @optionalTypeArgs
  TResult maybeWhen<TResult extends Object?>({
    TResult Function()? notYetStarted,
    TResult Function()? loading,
    TResult Function()? loaded,
    TResult Function(String? error)? error,
    required TResult orElse(),
  }) {
    if (loaded != null) {
      return loaded();
    }
    return orElse();
  }

  @override
  @optionalTypeArgs
  TResult map<TResult extends Object?>({
    required TResult Function(_MediaChatLoadingStateNotYetStarted value)
    notYetStarted,
    required TResult Function(_MediaChatLoadingStateLoading value) loading,
    required TResult Function(_MediaChatLoadingStateLoaded value) loaded,
    required TResult Function(_MediaChatLoadingStateError value) error,
  }) {
    return loaded(this);
  }

  @override
  @optionalTypeArgs
  TResult? mapOrNull<TResult extends Object?>({
    TResult? Function(_MediaChatLoadingStateNotYetStarted value)? notYetStarted,
    TResult? Function(_MediaChatLoadingStateLoading value)? loading,
    TResult? Function(_MediaChatLoadingStateLoaded value)? loaded,
    TResult? Function(_MediaChatLoadingStateError value)? error,
  }) {
    return loaded?.call(this);
  }

  @override
  @optionalTypeArgs
  TResult maybeMap<TResult extends Object?>({
    TResult Function(_MediaChatLoadingStateNotYetStarted value)? notYetStarted,
    TResult Function(_MediaChatLoadingStateLoading value)? loading,
    TResult Function(_MediaChatLoadingStateLoaded value)? loaded,
    TResult Function(_MediaChatLoadingStateError value)? error,
    required TResult orElse(),
  }) {
    if (loaded != null) {
      return loaded(this);
    }
    return orElse();
  }
}

abstract class _MediaChatLoadingStateLoaded implements MediaChatLoadingState {
  const factory _MediaChatLoadingStateLoaded() =
      _$MediaChatLoadingStateLoadedImpl;
}

/// @nodoc
abstract class _$$MediaChatLoadingStateErrorImplCopyWith<$Res> {
  factory _$$MediaChatLoadingStateErrorImplCopyWith(
    _$MediaChatLoadingStateErrorImpl value,
    $Res Function(_$MediaChatLoadingStateErrorImpl) then,
  ) = __$$MediaChatLoadingStateErrorImplCopyWithImpl<$Res>;
  @useResult
  $Res call({String? error});
}

/// @nodoc
class __$$MediaChatLoadingStateErrorImplCopyWithImpl<$Res>
    extends
        _$MediaChatLoadingStateCopyWithImpl<
          $Res,
          _$MediaChatLoadingStateErrorImpl
        >
    implements _$$MediaChatLoadingStateErrorImplCopyWith<$Res> {
  __$$MediaChatLoadingStateErrorImplCopyWithImpl(
    _$MediaChatLoadingStateErrorImpl _value,
    $Res Function(_$MediaChatLoadingStateErrorImpl) _then,
  ) : super(_value, _then);

  /// Create a copy of MediaChatLoadingState
  /// with the given fields replaced by the non-null parameter values.
  @pragma('vm:prefer-inline')
  @override
  $Res call({Object? error = freezed}) {
    return _then(
      _$MediaChatLoadingStateErrorImpl(
        freezed == error
            ? _value.error
            : error // ignore: cast_nullable_to_non_nullable
                as String?,
      ),
    );
  }
}

/// @nodoc

class _$MediaChatLoadingStateErrorImpl implements _MediaChatLoadingStateError {
  const _$MediaChatLoadingStateErrorImpl([this.error]);

  @override
  final String? error;

  @override
  String toString() {
    return 'MediaChatLoadingState.error(error: $error)';
  }

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

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

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

  @override
  @optionalTypeArgs
  TResult when<TResult extends Object?>({
    required TResult Function() notYetStarted,
    required TResult Function() loading,
    required TResult Function() loaded,
    required TResult Function(String? error) error,
  }) {
    return error(this.error);
  }

  @override
  @optionalTypeArgs
  TResult? whenOrNull<TResult extends Object?>({
    TResult? Function()? notYetStarted,
    TResult? Function()? loading,
    TResult? Function()? loaded,
    TResult? Function(String? error)? error,
  }) {
    return error?.call(this.error);
  }

  @override
  @optionalTypeArgs
  TResult maybeWhen<TResult extends Object?>({
    TResult Function()? notYetStarted,
    TResult Function()? loading,
    TResult Function()? loaded,
    TResult Function(String? error)? error,
    required TResult orElse(),
  }) {
    if (error != null) {
      return error(this.error);
    }
    return orElse();
  }

  @override
  @optionalTypeArgs
  TResult map<TResult extends Object?>({
    required TResult Function(_MediaChatLoadingStateNotYetStarted value)
    notYetStarted,
    required TResult Function(_MediaChatLoadingStateLoading value) loading,
    required TResult Function(_MediaChatLoadingStateLoaded value) loaded,
    required TResult Function(_MediaChatLoadingStateError value) error,
  }) {
    return error(this);
  }

  @override
  @optionalTypeArgs
  TResult? mapOrNull<TResult extends Object?>({
    TResult? Function(_MediaChatLoadingStateNotYetStarted value)? notYetStarted,
    TResult? Function(_MediaChatLoadingStateLoading value)? loading,
    TResult? Function(_MediaChatLoadingStateLoaded value)? loaded,
    TResult? Function(_MediaChatLoadingStateError value)? error,
  }) {
    return error?.call(this);
  }

  @override
  @optionalTypeArgs
  TResult maybeMap<TResult extends Object?>({
    TResult Function(_MediaChatLoadingStateNotYetStarted value)? notYetStarted,
    TResult Function(_MediaChatLoadingStateLoading value)? loading,
    TResult Function(_MediaChatLoadingStateLoaded value)? loaded,
    TResult Function(_MediaChatLoadingStateError value)? error,
    required TResult orElse(),
  }) {
    if (error != null) {
      return error(this);
    }
    return orElse();
  }
}

abstract class _MediaChatLoadingStateError implements MediaChatLoadingState {
  const factory _MediaChatLoadingStateError([final String? error]) =
      _$MediaChatLoadingStateErrorImpl;

  String? get error;

  /// Create a copy of MediaChatLoadingState
  /// with the given fields replaced by the non-null parameter values.
  @JsonKey(includeFromJson: false, includeToJson: false)
  _$$MediaChatLoadingStateErrorImplCopyWith<_$MediaChatLoadingStateErrorImpl>
  get copyWith => throw _privateConstructorUsedError;
}

/// @nodoc
mixin _$MediaChatState {
  MediaChatLoadingState get mediaChatLoadingState =>
      throw _privateConstructorUsedError;
  File? get mediaFile => throw _privateConstructorUsedError;
  File? get videoThumbnailFile => throw _privateConstructorUsedError;
  bool get isDownloading => throw _privateConstructorUsedError;

  /// Create a copy of MediaChatState
  /// with the given fields replaced by the non-null parameter values.
  @JsonKey(includeFromJson: false, includeToJson: false)
  $MediaChatStateCopyWith<MediaChatState> get copyWith =>
      throw _privateConstructorUsedError;
}

/// @nodoc
abstract class $MediaChatStateCopyWith<$Res> {
  factory $MediaChatStateCopyWith(
    MediaChatState value,
    $Res Function(MediaChatState) then,
  ) = _$MediaChatStateCopyWithImpl<$Res, MediaChatState>;
  @useResult
  $Res call({
    MediaChatLoadingState mediaChatLoadingState,
    File? mediaFile,
    File? videoThumbnailFile,
    bool isDownloading,
  });

  $MediaChatLoadingStateCopyWith<$Res> get mediaChatLoadingState;
}

/// @nodoc
class _$MediaChatStateCopyWithImpl<$Res, $Val extends MediaChatState>
    implements $MediaChatStateCopyWith<$Res> {
  _$MediaChatStateCopyWithImpl(this._value, this._then);

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

  /// Create a copy of MediaChatState
  /// with the given fields replaced by the non-null parameter values.
  @pragma('vm:prefer-inline')
  @override
  $Res call({
    Object? mediaChatLoadingState = null,
    Object? mediaFile = freezed,
    Object? videoThumbnailFile = freezed,
    Object? isDownloading = null,
  }) {
    return _then(
      _value.copyWith(
            mediaChatLoadingState:
                null == mediaChatLoadingState
                    ? _value.mediaChatLoadingState
                    : mediaChatLoadingState // ignore: cast_nullable_to_non_nullable
                        as MediaChatLoadingState,
            mediaFile:
                freezed == mediaFile
                    ? _value.mediaFile
                    : mediaFile // ignore: cast_nullable_to_non_nullable
                        as File?,
            videoThumbnailFile:
                freezed == videoThumbnailFile
                    ? _value.videoThumbnailFile
                    : videoThumbnailFile // ignore: cast_nullable_to_non_nullable
                        as File?,
            isDownloading:
                null == isDownloading
                    ? _value.isDownloading
                    : isDownloading // ignore: cast_nullable_to_non_nullable
                        as bool,
          )
          as $Val,
    );
  }

  /// Create a copy of MediaChatState
  /// with the given fields replaced by the non-null parameter values.
  @override
  @pragma('vm:prefer-inline')
  $MediaChatLoadingStateCopyWith<$Res> get mediaChatLoadingState {
    return $MediaChatLoadingStateCopyWith<$Res>(_value.mediaChatLoadingState, (
      value,
    ) {
      return _then(_value.copyWith(mediaChatLoadingState: value) as $Val);
    });
  }
}

/// @nodoc
abstract class _$$MediaChatStateImplCopyWith<$Res>
    implements $MediaChatStateCopyWith<$Res> {
  factory _$$MediaChatStateImplCopyWith(
    _$MediaChatStateImpl value,
    $Res Function(_$MediaChatStateImpl) then,
  ) = __$$MediaChatStateImplCopyWithImpl<$Res>;
  @override
  @useResult
  $Res call({
    MediaChatLoadingState mediaChatLoadingState,
    File? mediaFile,
    File? videoThumbnailFile,
    bool isDownloading,
  });

  @override
  $MediaChatLoadingStateCopyWith<$Res> get mediaChatLoadingState;
}

/// @nodoc
class __$$MediaChatStateImplCopyWithImpl<$Res>
    extends _$MediaChatStateCopyWithImpl<$Res, _$MediaChatStateImpl>
    implements _$$MediaChatStateImplCopyWith<$Res> {
  __$$MediaChatStateImplCopyWithImpl(
    _$MediaChatStateImpl _value,
    $Res Function(_$MediaChatStateImpl) _then,
  ) : super(_value, _then);

  /// Create a copy of MediaChatState
  /// with the given fields replaced by the non-null parameter values.
  @pragma('vm:prefer-inline')
  @override
  $Res call({
    Object? mediaChatLoadingState = null,
    Object? mediaFile = freezed,
    Object? videoThumbnailFile = freezed,
    Object? isDownloading = null,
  }) {
    return _then(
      _$MediaChatStateImpl(
        mediaChatLoadingState:
            null == mediaChatLoadingState
                ? _value.mediaChatLoadingState
                : mediaChatLoadingState // ignore: cast_nullable_to_non_nullable
                    as MediaChatLoadingState,
        mediaFile:
            freezed == mediaFile
                ? _value.mediaFile
                : mediaFile // ignore: cast_nullable_to_non_nullable
                    as File?,
        videoThumbnailFile:
            freezed == videoThumbnailFile
                ? _value.videoThumbnailFile
                : videoThumbnailFile // ignore: cast_nullable_to_non_nullable
                    as File?,
        isDownloading:
            null == isDownloading
                ? _value.isDownloading
                : isDownloading // ignore: cast_nullable_to_non_nullable
                    as bool,
      ),
    );
  }
}

/// @nodoc

class _$MediaChatStateImpl implements _MediaChatState {
  const _$MediaChatStateImpl({
    this.mediaChatLoadingState = const MediaChatLoadingState.loading(),
    this.mediaFile,
    this.videoThumbnailFile,
    this.isDownloading = false,
  });

  @override
  @JsonKey()
  final MediaChatLoadingState mediaChatLoadingState;
  @override
  final File? mediaFile;
  @override
  final File? videoThumbnailFile;
  @override
  @JsonKey()
  final bool isDownloading;

  @override
  String toString() {
    return 'MediaChatState(mediaChatLoadingState: $mediaChatLoadingState, mediaFile: $mediaFile, videoThumbnailFile: $videoThumbnailFile, isDownloading: $isDownloading)';
  }

  @override
  bool operator ==(Object other) {
    return identical(this, other) ||
        (other.runtimeType == runtimeType &&
            other is _$MediaChatStateImpl &&
            (identical(other.mediaChatLoadingState, mediaChatLoadingState) ||
                other.mediaChatLoadingState == mediaChatLoadingState) &&
            (identical(other.mediaFile, mediaFile) ||
                other.mediaFile == mediaFile) &&
            (identical(other.videoThumbnailFile, videoThumbnailFile) ||
                other.videoThumbnailFile == videoThumbnailFile) &&
            (identical(other.isDownloading, isDownloading) ||
                other.isDownloading == isDownloading));
  }

  @override
  int get hashCode => Object.hash(
    runtimeType,
    mediaChatLoadingState,
    mediaFile,
    videoThumbnailFile,
    isDownloading,
  );

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

abstract class _MediaChatState implements MediaChatState {
  const factory _MediaChatState({
    final MediaChatLoadingState mediaChatLoadingState,
    final File? mediaFile,
    final File? videoThumbnailFile,
    final bool isDownloading,
  }) = _$MediaChatStateImpl;

  @override
  MediaChatLoadingState get mediaChatLoadingState;
  @override
  File? get mediaFile;
  @override
  File? get videoThumbnailFile;
  @override
  bool get isDownloading;

  /// Create a copy of MediaChatState
  /// with the given fields replaced by the non-null parameter values.
  @override
  @JsonKey(includeFromJson: false, includeToJson: false)
  _$$MediaChatStateImplCopyWith<_$MediaChatStateImpl> get copyWith =>
      throw _privateConstructorUsedError;
}
