// 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 'chat_state.dart'; // ************************************************************************** // FreezedGenerator // ************************************************************************** T _$identity(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 _$ThinkingStep { String get id => throw _privateConstructorUsedError; String get title => throw _privateConstructorUsedError; ThinkingStepStatus get status => throw _privateConstructorUsedError; String? get details => throw _privateConstructorUsedError; /// Create a copy of ThinkingStep /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) $ThinkingStepCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $ThinkingStepCopyWith<$Res> { factory $ThinkingStepCopyWith( ThinkingStep value, $Res Function(ThinkingStep) then, ) = _$ThinkingStepCopyWithImpl<$Res, ThinkingStep>; @useResult $Res call({ String id, String title, ThinkingStepStatus status, String? details, }); } /// @nodoc class _$ThinkingStepCopyWithImpl<$Res, $Val extends ThinkingStep> implements $ThinkingStepCopyWith<$Res> { _$ThinkingStepCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; // ignore: unused_field final $Res Function($Val) _then; /// Create a copy of ThinkingStep /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? id = null, Object? title = null, Object? status = null, Object? details = freezed, }) { return _then( _value.copyWith( id: null == id ? _value.id : id // ignore: cast_nullable_to_non_nullable as String, title: null == title ? _value.title : title // ignore: cast_nullable_to_non_nullable as String, status: null == status ? _value.status : status // ignore: cast_nullable_to_non_nullable as ThinkingStepStatus, details: freezed == details ? _value.details : details // ignore: cast_nullable_to_non_nullable as String?, ) as $Val, ); } } /// @nodoc abstract class _$$ThinkingStepImplCopyWith<$Res> implements $ThinkingStepCopyWith<$Res> { factory _$$ThinkingStepImplCopyWith( _$ThinkingStepImpl value, $Res Function(_$ThinkingStepImpl) then, ) = __$$ThinkingStepImplCopyWithImpl<$Res>; @override @useResult $Res call({ String id, String title, ThinkingStepStatus status, String? details, }); } /// @nodoc class __$$ThinkingStepImplCopyWithImpl<$Res> extends _$ThinkingStepCopyWithImpl<$Res, _$ThinkingStepImpl> implements _$$ThinkingStepImplCopyWith<$Res> { __$$ThinkingStepImplCopyWithImpl( _$ThinkingStepImpl _value, $Res Function(_$ThinkingStepImpl) _then, ) : super(_value, _then); /// Create a copy of ThinkingStep /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? id = null, Object? title = null, Object? status = null, Object? details = freezed, }) { return _then( _$ThinkingStepImpl( id: null == id ? _value.id : id // ignore: cast_nullable_to_non_nullable as String, title: null == title ? _value.title : title // ignore: cast_nullable_to_non_nullable as String, status: null == status ? _value.status : status // ignore: cast_nullable_to_non_nullable as ThinkingStepStatus, details: freezed == details ? _value.details : details // ignore: cast_nullable_to_non_nullable as String?, ), ); } } /// @nodoc class _$ThinkingStepImpl implements _ThinkingStep { const _$ThinkingStepImpl({ required this.id, required this.title, this.status = ThinkingStepStatus.running, this.details, }); @override final String id; @override final String title; @override @JsonKey() final ThinkingStepStatus status; @override final String? details; @override String toString() { return 'ThinkingStep(id: $id, title: $title, status: $status, details: $details)'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$ThinkingStepImpl && (identical(other.id, id) || other.id == id) && (identical(other.title, title) || other.title == title) && (identical(other.status, status) || other.status == status) && (identical(other.details, details) || other.details == details)); } @override int get hashCode => Object.hash(runtimeType, id, title, status, details); /// Create a copy of ThinkingStep /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$ThinkingStepImplCopyWith<_$ThinkingStepImpl> get copyWith => __$$ThinkingStepImplCopyWithImpl<_$ThinkingStepImpl>(this, _$identity); } abstract class _ThinkingStep implements ThinkingStep { const factory _ThinkingStep({ required final String id, required final String title, final ThinkingStepStatus status, final String? details, }) = _$ThinkingStepImpl; @override String get id; @override String get title; @override ThinkingStepStatus get status; @override String? get details; /// Create a copy of ThinkingStep /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) _$$ThinkingStepImplCopyWith<_$ThinkingStepImpl> get copyWith => throw _privateConstructorUsedError; } /// @nodoc mixin _$ChatState { List get sessions => throw _privateConstructorUsedError; ChatSessionEntity? get activeSession => throw _privateConstructorUsedError; List get messages => throw _privateConstructorUsedError; bool get isTyping => throw _privateConstructorUsedError; List get thinkingSteps => throw _privateConstructorUsedError; String? get streamingContent => throw _privateConstructorUsedError; /// Create a copy of ChatState /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) $ChatStateCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $ChatStateCopyWith<$Res> { factory $ChatStateCopyWith(ChatState value, $Res Function(ChatState) then) = _$ChatStateCopyWithImpl<$Res, ChatState>; @useResult $Res call({ List sessions, ChatSessionEntity? activeSession, List messages, bool isTyping, List thinkingSteps, String? streamingContent, }); $ChatSessionEntityCopyWith<$Res>? get activeSession; } /// @nodoc class _$ChatStateCopyWithImpl<$Res, $Val extends ChatState> implements $ChatStateCopyWith<$Res> { _$ChatStateCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; // ignore: unused_field final $Res Function($Val) _then; /// Create a copy of ChatState /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? sessions = null, Object? activeSession = freezed, Object? messages = null, Object? isTyping = null, Object? thinkingSteps = null, Object? streamingContent = freezed, }) { return _then( _value.copyWith( sessions: null == sessions ? _value.sessions : sessions // ignore: cast_nullable_to_non_nullable as List, activeSession: freezed == activeSession ? _value.activeSession : activeSession // ignore: cast_nullable_to_non_nullable as ChatSessionEntity?, messages: null == messages ? _value.messages : messages // ignore: cast_nullable_to_non_nullable as List, isTyping: null == isTyping ? _value.isTyping : isTyping // ignore: cast_nullable_to_non_nullable as bool, thinkingSteps: null == thinkingSteps ? _value.thinkingSteps : thinkingSteps // ignore: cast_nullable_to_non_nullable as List, streamingContent: freezed == streamingContent ? _value.streamingContent : streamingContent // ignore: cast_nullable_to_non_nullable as String?, ) as $Val, ); } /// Create a copy of ChatState /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $ChatSessionEntityCopyWith<$Res>? get activeSession { if (_value.activeSession == null) { return null; } return $ChatSessionEntityCopyWith<$Res>(_value.activeSession!, (value) { return _then(_value.copyWith(activeSession: value) as $Val); }); } } /// @nodoc abstract class _$$ChatStateImplCopyWith<$Res> implements $ChatStateCopyWith<$Res> { factory _$$ChatStateImplCopyWith( _$ChatStateImpl value, $Res Function(_$ChatStateImpl) then, ) = __$$ChatStateImplCopyWithImpl<$Res>; @override @useResult $Res call({ List sessions, ChatSessionEntity? activeSession, List messages, bool isTyping, List thinkingSteps, String? streamingContent, }); @override $ChatSessionEntityCopyWith<$Res>? get activeSession; } /// @nodoc class __$$ChatStateImplCopyWithImpl<$Res> extends _$ChatStateCopyWithImpl<$Res, _$ChatStateImpl> implements _$$ChatStateImplCopyWith<$Res> { __$$ChatStateImplCopyWithImpl( _$ChatStateImpl _value, $Res Function(_$ChatStateImpl) _then, ) : super(_value, _then); /// Create a copy of ChatState /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? sessions = null, Object? activeSession = freezed, Object? messages = null, Object? isTyping = null, Object? thinkingSteps = null, Object? streamingContent = freezed, }) { return _then( _$ChatStateImpl( sessions: null == sessions ? _value._sessions : sessions // ignore: cast_nullable_to_non_nullable as List, activeSession: freezed == activeSession ? _value.activeSession : activeSession // ignore: cast_nullable_to_non_nullable as ChatSessionEntity?, messages: null == messages ? _value._messages : messages // ignore: cast_nullable_to_non_nullable as List, isTyping: null == isTyping ? _value.isTyping : isTyping // ignore: cast_nullable_to_non_nullable as bool, thinkingSteps: null == thinkingSteps ? _value._thinkingSteps : thinkingSteps // ignore: cast_nullable_to_non_nullable as List, streamingContent: freezed == streamingContent ? _value.streamingContent : streamingContent // ignore: cast_nullable_to_non_nullable as String?, ), ); } } /// @nodoc class _$ChatStateImpl implements _ChatState { const _$ChatStateImpl({ final List sessions = const [], this.activeSession, final List messages = const [], this.isTyping = false, final List thinkingSteps = const [], this.streamingContent, }) : _sessions = sessions, _messages = messages, _thinkingSteps = thinkingSteps; final List _sessions; @override @JsonKey() List get sessions { if (_sessions is EqualUnmodifiableListView) return _sessions; // ignore: implicit_dynamic_type return EqualUnmodifiableListView(_sessions); } @override final ChatSessionEntity? activeSession; final List _messages; @override @JsonKey() List get messages { if (_messages is EqualUnmodifiableListView) return _messages; // ignore: implicit_dynamic_type return EqualUnmodifiableListView(_messages); } @override @JsonKey() final bool isTyping; final List _thinkingSteps; @override @JsonKey() List get thinkingSteps { if (_thinkingSteps is EqualUnmodifiableListView) return _thinkingSteps; // ignore: implicit_dynamic_type return EqualUnmodifiableListView(_thinkingSteps); } @override final String? streamingContent; @override String toString() { return 'ChatState(sessions: $sessions, activeSession: $activeSession, messages: $messages, isTyping: $isTyping, thinkingSteps: $thinkingSteps, streamingContent: $streamingContent)'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$ChatStateImpl && const DeepCollectionEquality().equals(other._sessions, _sessions) && (identical(other.activeSession, activeSession) || other.activeSession == activeSession) && const DeepCollectionEquality().equals(other._messages, _messages) && (identical(other.isTyping, isTyping) || other.isTyping == isTyping) && const DeepCollectionEquality().equals( other._thinkingSteps, _thinkingSteps, ) && (identical(other.streamingContent, streamingContent) || other.streamingContent == streamingContent)); } @override int get hashCode => Object.hash( runtimeType, const DeepCollectionEquality().hash(_sessions), activeSession, const DeepCollectionEquality().hash(_messages), isTyping, const DeepCollectionEquality().hash(_thinkingSteps), streamingContent, ); /// Create a copy of ChatState /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$ChatStateImplCopyWith<_$ChatStateImpl> get copyWith => __$$ChatStateImplCopyWithImpl<_$ChatStateImpl>(this, _$identity); } abstract class _ChatState implements ChatState { const factory _ChatState({ final List sessions, final ChatSessionEntity? activeSession, final List messages, final bool isTyping, final List thinkingSteps, final String? streamingContent, }) = _$ChatStateImpl; @override List get sessions; @override ChatSessionEntity? get activeSession; @override List get messages; @override bool get isTyping; @override List get thinkingSteps; @override String? get streamingContent; /// Create a copy of ChatState /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) _$$ChatStateImplCopyWith<_$ChatStateImpl> get copyWith => throw _privateConstructorUsedError; }