220 lines
7.1 KiB
Dart
220 lines
7.1 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 'analysis_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 _$AnalysisSessionEntity {
|
|
String get id => throw _privateConstructorUsedError;
|
|
String get name => throw _privateConstructorUsedError;
|
|
String get date => throw _privateConstructorUsedError;
|
|
String? get videoPath => throw _privateConstructorUsedError;
|
|
|
|
/// Create a copy of AnalysisSessionEntity
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
$AnalysisSessionEntityCopyWith<AnalysisSessionEntity> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class $AnalysisSessionEntityCopyWith<$Res> {
|
|
factory $AnalysisSessionEntityCopyWith(
|
|
AnalysisSessionEntity value,
|
|
$Res Function(AnalysisSessionEntity) then,
|
|
) = _$AnalysisSessionEntityCopyWithImpl<$Res, AnalysisSessionEntity>;
|
|
@useResult
|
|
$Res call({String id, String name, String date, String? videoPath});
|
|
}
|
|
|
|
/// @nodoc
|
|
class _$AnalysisSessionEntityCopyWithImpl<
|
|
$Res,
|
|
$Val extends AnalysisSessionEntity
|
|
>
|
|
implements $AnalysisSessionEntityCopyWith<$Res> {
|
|
_$AnalysisSessionEntityCopyWithImpl(this._value, this._then);
|
|
|
|
// ignore: unused_field
|
|
final $Val _value;
|
|
// ignore: unused_field
|
|
final $Res Function($Val) _then;
|
|
|
|
/// Create a copy of AnalysisSessionEntity
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? id = null,
|
|
Object? name = null,
|
|
Object? date = null,
|
|
Object? videoPath = freezed,
|
|
}) {
|
|
return _then(
|
|
_value.copyWith(
|
|
id: null == id
|
|
? _value.id
|
|
: id // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
name: null == name
|
|
? _value.name
|
|
: name // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
date: null == date
|
|
? _value.date
|
|
: date // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
videoPath: freezed == videoPath
|
|
? _value.videoPath
|
|
: videoPath // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
)
|
|
as $Val,
|
|
);
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class _$$AnalysisSessionEntityImplCopyWith<$Res>
|
|
implements $AnalysisSessionEntityCopyWith<$Res> {
|
|
factory _$$AnalysisSessionEntityImplCopyWith(
|
|
_$AnalysisSessionEntityImpl value,
|
|
$Res Function(_$AnalysisSessionEntityImpl) then,
|
|
) = __$$AnalysisSessionEntityImplCopyWithImpl<$Res>;
|
|
@override
|
|
@useResult
|
|
$Res call({String id, String name, String date, String? videoPath});
|
|
}
|
|
|
|
/// @nodoc
|
|
class __$$AnalysisSessionEntityImplCopyWithImpl<$Res>
|
|
extends
|
|
_$AnalysisSessionEntityCopyWithImpl<$Res, _$AnalysisSessionEntityImpl>
|
|
implements _$$AnalysisSessionEntityImplCopyWith<$Res> {
|
|
__$$AnalysisSessionEntityImplCopyWithImpl(
|
|
_$AnalysisSessionEntityImpl _value,
|
|
$Res Function(_$AnalysisSessionEntityImpl) _then,
|
|
) : super(_value, _then);
|
|
|
|
/// Create a copy of AnalysisSessionEntity
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? id = null,
|
|
Object? name = null,
|
|
Object? date = null,
|
|
Object? videoPath = freezed,
|
|
}) {
|
|
return _then(
|
|
_$AnalysisSessionEntityImpl(
|
|
id: null == id
|
|
? _value.id
|
|
: id // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
name: null == name
|
|
? _value.name
|
|
: name // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
date: null == date
|
|
? _value.date
|
|
: date // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
videoPath: freezed == videoPath
|
|
? _value.videoPath
|
|
: videoPath // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
),
|
|
);
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
|
|
class _$AnalysisSessionEntityImpl implements _AnalysisSessionEntity {
|
|
const _$AnalysisSessionEntityImpl({
|
|
required this.id,
|
|
required this.name,
|
|
required this.date,
|
|
this.videoPath,
|
|
});
|
|
|
|
@override
|
|
final String id;
|
|
@override
|
|
final String name;
|
|
@override
|
|
final String date;
|
|
@override
|
|
final String? videoPath;
|
|
|
|
@override
|
|
String toString() {
|
|
return 'AnalysisSessionEntity(id: $id, name: $name, date: $date, videoPath: $videoPath)';
|
|
}
|
|
|
|
@override
|
|
bool operator ==(Object other) {
|
|
return identical(this, other) ||
|
|
(other.runtimeType == runtimeType &&
|
|
other is _$AnalysisSessionEntityImpl &&
|
|
(identical(other.id, id) || other.id == id) &&
|
|
(identical(other.name, name) || other.name == name) &&
|
|
(identical(other.date, date) || other.date == date) &&
|
|
(identical(other.videoPath, videoPath) ||
|
|
other.videoPath == videoPath));
|
|
}
|
|
|
|
@override
|
|
int get hashCode => Object.hash(runtimeType, id, name, date, videoPath);
|
|
|
|
/// Create a copy of AnalysisSessionEntity
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
_$$AnalysisSessionEntityImplCopyWith<_$AnalysisSessionEntityImpl>
|
|
get copyWith =>
|
|
__$$AnalysisSessionEntityImplCopyWithImpl<_$AnalysisSessionEntityImpl>(
|
|
this,
|
|
_$identity,
|
|
);
|
|
}
|
|
|
|
abstract class _AnalysisSessionEntity implements AnalysisSessionEntity {
|
|
const factory _AnalysisSessionEntity({
|
|
required final String id,
|
|
required final String name,
|
|
required final String date,
|
|
final String? videoPath,
|
|
}) = _$AnalysisSessionEntityImpl;
|
|
|
|
@override
|
|
String get id;
|
|
@override
|
|
String get name;
|
|
@override
|
|
String get date;
|
|
@override
|
|
String? get videoPath;
|
|
|
|
/// Create a copy of AnalysisSessionEntity
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@override
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
_$$AnalysisSessionEntityImplCopyWith<_$AnalysisSessionEntityImpl>
|
|
get copyWith => throw _privateConstructorUsedError;
|
|
}
|