216 lines
7.0 KiB
Dart
216 lines
7.0 KiB
Dart
// 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_session.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 _$ChatSessionEntity {
|
|
String get id => throw _privateConstructorUsedError;
|
|
String? get title => throw _privateConstructorUsedError;
|
|
String get createdAt => throw _privateConstructorUsedError;
|
|
String get updatedAt => throw _privateConstructorUsedError;
|
|
|
|
/// Create a copy of ChatSessionEntity
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
$ChatSessionEntityCopyWith<ChatSessionEntity> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class $ChatSessionEntityCopyWith<$Res> {
|
|
factory $ChatSessionEntityCopyWith(
|
|
ChatSessionEntity value,
|
|
$Res Function(ChatSessionEntity) then,
|
|
) = _$ChatSessionEntityCopyWithImpl<$Res, ChatSessionEntity>;
|
|
@useResult
|
|
$Res call({String id, String? title, String createdAt, String updatedAt});
|
|
}
|
|
|
|
/// @nodoc
|
|
class _$ChatSessionEntityCopyWithImpl<$Res, $Val extends ChatSessionEntity>
|
|
implements $ChatSessionEntityCopyWith<$Res> {
|
|
_$ChatSessionEntityCopyWithImpl(this._value, this._then);
|
|
|
|
// ignore: unused_field
|
|
final $Val _value;
|
|
// ignore: unused_field
|
|
final $Res Function($Val) _then;
|
|
|
|
/// Create a copy of ChatSessionEntity
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? id = null,
|
|
Object? title = freezed,
|
|
Object? createdAt = null,
|
|
Object? updatedAt = null,
|
|
}) {
|
|
return _then(
|
|
_value.copyWith(
|
|
id: null == id
|
|
? _value.id
|
|
: id // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
title: freezed == title
|
|
? _value.title
|
|
: title // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
createdAt: null == createdAt
|
|
? _value.createdAt
|
|
: createdAt // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
updatedAt: null == updatedAt
|
|
? _value.updatedAt
|
|
: updatedAt // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
)
|
|
as $Val,
|
|
);
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class _$$ChatSessionEntityImplCopyWith<$Res>
|
|
implements $ChatSessionEntityCopyWith<$Res> {
|
|
factory _$$ChatSessionEntityImplCopyWith(
|
|
_$ChatSessionEntityImpl value,
|
|
$Res Function(_$ChatSessionEntityImpl) then,
|
|
) = __$$ChatSessionEntityImplCopyWithImpl<$Res>;
|
|
@override
|
|
@useResult
|
|
$Res call({String id, String? title, String createdAt, String updatedAt});
|
|
}
|
|
|
|
/// @nodoc
|
|
class __$$ChatSessionEntityImplCopyWithImpl<$Res>
|
|
extends _$ChatSessionEntityCopyWithImpl<$Res, _$ChatSessionEntityImpl>
|
|
implements _$$ChatSessionEntityImplCopyWith<$Res> {
|
|
__$$ChatSessionEntityImplCopyWithImpl(
|
|
_$ChatSessionEntityImpl _value,
|
|
$Res Function(_$ChatSessionEntityImpl) _then,
|
|
) : super(_value, _then);
|
|
|
|
/// Create a copy of ChatSessionEntity
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? id = null,
|
|
Object? title = freezed,
|
|
Object? createdAt = null,
|
|
Object? updatedAt = null,
|
|
}) {
|
|
return _then(
|
|
_$ChatSessionEntityImpl(
|
|
id: null == id
|
|
? _value.id
|
|
: id // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
title: freezed == title
|
|
? _value.title
|
|
: title // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
createdAt: null == createdAt
|
|
? _value.createdAt
|
|
: createdAt // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
updatedAt: null == updatedAt
|
|
? _value.updatedAt
|
|
: updatedAt // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
),
|
|
);
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
|
|
class _$ChatSessionEntityImpl implements _ChatSessionEntity {
|
|
const _$ChatSessionEntityImpl({
|
|
required this.id,
|
|
this.title,
|
|
required this.createdAt,
|
|
required this.updatedAt,
|
|
});
|
|
|
|
@override
|
|
final String id;
|
|
@override
|
|
final String? title;
|
|
@override
|
|
final String createdAt;
|
|
@override
|
|
final String updatedAt;
|
|
|
|
@override
|
|
String toString() {
|
|
return 'ChatSessionEntity(id: $id, title: $title, createdAt: $createdAt, updatedAt: $updatedAt)';
|
|
}
|
|
|
|
@override
|
|
bool operator ==(Object other) {
|
|
return identical(this, other) ||
|
|
(other.runtimeType == runtimeType &&
|
|
other is _$ChatSessionEntityImpl &&
|
|
(identical(other.id, id) || other.id == id) &&
|
|
(identical(other.title, title) || other.title == title) &&
|
|
(identical(other.createdAt, createdAt) ||
|
|
other.createdAt == createdAt) &&
|
|
(identical(other.updatedAt, updatedAt) ||
|
|
other.updatedAt == updatedAt));
|
|
}
|
|
|
|
@override
|
|
int get hashCode => Object.hash(runtimeType, id, title, createdAt, updatedAt);
|
|
|
|
/// Create a copy of ChatSessionEntity
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
_$$ChatSessionEntityImplCopyWith<_$ChatSessionEntityImpl> get copyWith =>
|
|
__$$ChatSessionEntityImplCopyWithImpl<_$ChatSessionEntityImpl>(
|
|
this,
|
|
_$identity,
|
|
);
|
|
}
|
|
|
|
abstract class _ChatSessionEntity implements ChatSessionEntity {
|
|
const factory _ChatSessionEntity({
|
|
required final String id,
|
|
final String? title,
|
|
required final String createdAt,
|
|
required final String updatedAt,
|
|
}) = _$ChatSessionEntityImpl;
|
|
|
|
@override
|
|
String get id;
|
|
@override
|
|
String? get title;
|
|
@override
|
|
String get createdAt;
|
|
@override
|
|
String get updatedAt;
|
|
|
|
/// Create a copy of ChatSessionEntity
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@override
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
_$$ChatSessionEntityImplCopyWith<_$ChatSessionEntityImpl> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|