This commit is contained in:
235
lib/presentation/settings/knowledge_base_state.freezed.dart
Normal file
235
lib/presentation/settings/knowledge_base_state.freezed.dart
Normal file
@@ -0,0 +1,235 @@
|
||||
// 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 'knowledge_base_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 _$KnowledgeBaseState {
|
||||
bool get isLoading => throw _privateConstructorUsedError;
|
||||
int get chunkCount => throw _privateConstructorUsedError;
|
||||
String? get successMessage => throw _privateConstructorUsedError;
|
||||
String? get errorMessage => throw _privateConstructorUsedError;
|
||||
|
||||
/// Create a copy of KnowledgeBaseState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
$KnowledgeBaseStateCopyWith<KnowledgeBaseState> get copyWith =>
|
||||
throw _privateConstructorUsedError;
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract class $KnowledgeBaseStateCopyWith<$Res> {
|
||||
factory $KnowledgeBaseStateCopyWith(
|
||||
KnowledgeBaseState value,
|
||||
$Res Function(KnowledgeBaseState) then,
|
||||
) = _$KnowledgeBaseStateCopyWithImpl<$Res, KnowledgeBaseState>;
|
||||
@useResult
|
||||
$Res call({
|
||||
bool isLoading,
|
||||
int chunkCount,
|
||||
String? successMessage,
|
||||
String? errorMessage,
|
||||
});
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class _$KnowledgeBaseStateCopyWithImpl<$Res, $Val extends KnowledgeBaseState>
|
||||
implements $KnowledgeBaseStateCopyWith<$Res> {
|
||||
_$KnowledgeBaseStateCopyWithImpl(this._value, this._then);
|
||||
|
||||
// ignore: unused_field
|
||||
final $Val _value;
|
||||
// ignore: unused_field
|
||||
final $Res Function($Val) _then;
|
||||
|
||||
/// Create a copy of KnowledgeBaseState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@pragma('vm:prefer-inline')
|
||||
@override
|
||||
$Res call({
|
||||
Object? isLoading = null,
|
||||
Object? chunkCount = null,
|
||||
Object? successMessage = freezed,
|
||||
Object? errorMessage = freezed,
|
||||
}) {
|
||||
return _then(
|
||||
_value.copyWith(
|
||||
isLoading: null == isLoading
|
||||
? _value.isLoading
|
||||
: isLoading // ignore: cast_nullable_to_non_nullable
|
||||
as bool,
|
||||
chunkCount: null == chunkCount
|
||||
? _value.chunkCount
|
||||
: chunkCount // ignore: cast_nullable_to_non_nullable
|
||||
as int,
|
||||
successMessage: freezed == successMessage
|
||||
? _value.successMessage
|
||||
: successMessage // ignore: cast_nullable_to_non_nullable
|
||||
as String?,
|
||||
errorMessage: freezed == errorMessage
|
||||
? _value.errorMessage
|
||||
: errorMessage // ignore: cast_nullable_to_non_nullable
|
||||
as String?,
|
||||
)
|
||||
as $Val,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract class _$$KnowledgeBaseStateImplCopyWith<$Res>
|
||||
implements $KnowledgeBaseStateCopyWith<$Res> {
|
||||
factory _$$KnowledgeBaseStateImplCopyWith(
|
||||
_$KnowledgeBaseStateImpl value,
|
||||
$Res Function(_$KnowledgeBaseStateImpl) then,
|
||||
) = __$$KnowledgeBaseStateImplCopyWithImpl<$Res>;
|
||||
@override
|
||||
@useResult
|
||||
$Res call({
|
||||
bool isLoading,
|
||||
int chunkCount,
|
||||
String? successMessage,
|
||||
String? errorMessage,
|
||||
});
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class __$$KnowledgeBaseStateImplCopyWithImpl<$Res>
|
||||
extends _$KnowledgeBaseStateCopyWithImpl<$Res, _$KnowledgeBaseStateImpl>
|
||||
implements _$$KnowledgeBaseStateImplCopyWith<$Res> {
|
||||
__$$KnowledgeBaseStateImplCopyWithImpl(
|
||||
_$KnowledgeBaseStateImpl _value,
|
||||
$Res Function(_$KnowledgeBaseStateImpl) _then,
|
||||
) : super(_value, _then);
|
||||
|
||||
/// Create a copy of KnowledgeBaseState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@pragma('vm:prefer-inline')
|
||||
@override
|
||||
$Res call({
|
||||
Object? isLoading = null,
|
||||
Object? chunkCount = null,
|
||||
Object? successMessage = freezed,
|
||||
Object? errorMessage = freezed,
|
||||
}) {
|
||||
return _then(
|
||||
_$KnowledgeBaseStateImpl(
|
||||
isLoading: null == isLoading
|
||||
? _value.isLoading
|
||||
: isLoading // ignore: cast_nullable_to_non_nullable
|
||||
as bool,
|
||||
chunkCount: null == chunkCount
|
||||
? _value.chunkCount
|
||||
: chunkCount // ignore: cast_nullable_to_non_nullable
|
||||
as int,
|
||||
successMessage: freezed == successMessage
|
||||
? _value.successMessage
|
||||
: successMessage // ignore: cast_nullable_to_non_nullable
|
||||
as String?,
|
||||
errorMessage: freezed == errorMessage
|
||||
? _value.errorMessage
|
||||
: errorMessage // ignore: cast_nullable_to_non_nullable
|
||||
as String?,
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
|
||||
class _$KnowledgeBaseStateImpl implements _KnowledgeBaseState {
|
||||
const _$KnowledgeBaseStateImpl({
|
||||
this.isLoading = false,
|
||||
this.chunkCount = 0,
|
||||
this.successMessage,
|
||||
this.errorMessage,
|
||||
});
|
||||
|
||||
@override
|
||||
@JsonKey()
|
||||
final bool isLoading;
|
||||
@override
|
||||
@JsonKey()
|
||||
final int chunkCount;
|
||||
@override
|
||||
final String? successMessage;
|
||||
@override
|
||||
final String? errorMessage;
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'KnowledgeBaseState(isLoading: $isLoading, chunkCount: $chunkCount, successMessage: $successMessage, errorMessage: $errorMessage)';
|
||||
}
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
return identical(this, other) ||
|
||||
(other.runtimeType == runtimeType &&
|
||||
other is _$KnowledgeBaseStateImpl &&
|
||||
(identical(other.isLoading, isLoading) ||
|
||||
other.isLoading == isLoading) &&
|
||||
(identical(other.chunkCount, chunkCount) ||
|
||||
other.chunkCount == chunkCount) &&
|
||||
(identical(other.successMessage, successMessage) ||
|
||||
other.successMessage == successMessage) &&
|
||||
(identical(other.errorMessage, errorMessage) ||
|
||||
other.errorMessage == errorMessage));
|
||||
}
|
||||
|
||||
@override
|
||||
int get hashCode => Object.hash(
|
||||
runtimeType,
|
||||
isLoading,
|
||||
chunkCount,
|
||||
successMessage,
|
||||
errorMessage,
|
||||
);
|
||||
|
||||
/// Create a copy of KnowledgeBaseState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
@override
|
||||
@pragma('vm:prefer-inline')
|
||||
_$$KnowledgeBaseStateImplCopyWith<_$KnowledgeBaseStateImpl> get copyWith =>
|
||||
__$$KnowledgeBaseStateImplCopyWithImpl<_$KnowledgeBaseStateImpl>(
|
||||
this,
|
||||
_$identity,
|
||||
);
|
||||
}
|
||||
|
||||
abstract class _KnowledgeBaseState implements KnowledgeBaseState {
|
||||
const factory _KnowledgeBaseState({
|
||||
final bool isLoading,
|
||||
final int chunkCount,
|
||||
final String? successMessage,
|
||||
final String? errorMessage,
|
||||
}) = _$KnowledgeBaseStateImpl;
|
||||
|
||||
@override
|
||||
bool get isLoading;
|
||||
@override
|
||||
int get chunkCount;
|
||||
@override
|
||||
String? get successMessage;
|
||||
@override
|
||||
String? get errorMessage;
|
||||
|
||||
/// Create a copy of KnowledgeBaseState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@override
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
_$$KnowledgeBaseStateImplCopyWith<_$KnowledgeBaseStateImpl> get copyWith =>
|
||||
throw _privateConstructorUsedError;
|
||||
}
|
||||
Reference in New Issue
Block a user