296 lines
9.2 KiB
Dart
296 lines
9.2 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 'annotation.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 _$AnnotationEntity {
|
|
String get id => throw _privateConstructorUsedError;
|
|
String get sessionId => throw _privateConstructorUsedError;
|
|
double get startTime => throw _privateConstructorUsedError;
|
|
double get endTime => throw _privateConstructorUsedError;
|
|
String? get name => throw _privateConstructorUsedError;
|
|
String? get description => throw _privateConstructorUsedError;
|
|
String? get color => throw _privateConstructorUsedError;
|
|
|
|
/// Create a copy of AnnotationEntity
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
$AnnotationEntityCopyWith<AnnotationEntity> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class $AnnotationEntityCopyWith<$Res> {
|
|
factory $AnnotationEntityCopyWith(
|
|
AnnotationEntity value,
|
|
$Res Function(AnnotationEntity) then,
|
|
) = _$AnnotationEntityCopyWithImpl<$Res, AnnotationEntity>;
|
|
@useResult
|
|
$Res call({
|
|
String id,
|
|
String sessionId,
|
|
double startTime,
|
|
double endTime,
|
|
String? name,
|
|
String? description,
|
|
String? color,
|
|
});
|
|
}
|
|
|
|
/// @nodoc
|
|
class _$AnnotationEntityCopyWithImpl<$Res, $Val extends AnnotationEntity>
|
|
implements $AnnotationEntityCopyWith<$Res> {
|
|
_$AnnotationEntityCopyWithImpl(this._value, this._then);
|
|
|
|
// ignore: unused_field
|
|
final $Val _value;
|
|
// ignore: unused_field
|
|
final $Res Function($Val) _then;
|
|
|
|
/// Create a copy of AnnotationEntity
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? id = null,
|
|
Object? sessionId = null,
|
|
Object? startTime = null,
|
|
Object? endTime = null,
|
|
Object? name = freezed,
|
|
Object? description = freezed,
|
|
Object? color = freezed,
|
|
}) {
|
|
return _then(
|
|
_value.copyWith(
|
|
id: null == id
|
|
? _value.id
|
|
: id // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
sessionId: null == sessionId
|
|
? _value.sessionId
|
|
: sessionId // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
startTime: null == startTime
|
|
? _value.startTime
|
|
: startTime // ignore: cast_nullable_to_non_nullable
|
|
as double,
|
|
endTime: null == endTime
|
|
? _value.endTime
|
|
: endTime // ignore: cast_nullable_to_non_nullable
|
|
as double,
|
|
name: freezed == name
|
|
? _value.name
|
|
: name // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
description: freezed == description
|
|
? _value.description
|
|
: description // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
color: freezed == color
|
|
? _value.color
|
|
: color // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
)
|
|
as $Val,
|
|
);
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class _$$AnnotationEntityImplCopyWith<$Res>
|
|
implements $AnnotationEntityCopyWith<$Res> {
|
|
factory _$$AnnotationEntityImplCopyWith(
|
|
_$AnnotationEntityImpl value,
|
|
$Res Function(_$AnnotationEntityImpl) then,
|
|
) = __$$AnnotationEntityImplCopyWithImpl<$Res>;
|
|
@override
|
|
@useResult
|
|
$Res call({
|
|
String id,
|
|
String sessionId,
|
|
double startTime,
|
|
double endTime,
|
|
String? name,
|
|
String? description,
|
|
String? color,
|
|
});
|
|
}
|
|
|
|
/// @nodoc
|
|
class __$$AnnotationEntityImplCopyWithImpl<$Res>
|
|
extends _$AnnotationEntityCopyWithImpl<$Res, _$AnnotationEntityImpl>
|
|
implements _$$AnnotationEntityImplCopyWith<$Res> {
|
|
__$$AnnotationEntityImplCopyWithImpl(
|
|
_$AnnotationEntityImpl _value,
|
|
$Res Function(_$AnnotationEntityImpl) _then,
|
|
) : super(_value, _then);
|
|
|
|
/// Create a copy of AnnotationEntity
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? id = null,
|
|
Object? sessionId = null,
|
|
Object? startTime = null,
|
|
Object? endTime = null,
|
|
Object? name = freezed,
|
|
Object? description = freezed,
|
|
Object? color = freezed,
|
|
}) {
|
|
return _then(
|
|
_$AnnotationEntityImpl(
|
|
id: null == id
|
|
? _value.id
|
|
: id // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
sessionId: null == sessionId
|
|
? _value.sessionId
|
|
: sessionId // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
startTime: null == startTime
|
|
? _value.startTime
|
|
: startTime // ignore: cast_nullable_to_non_nullable
|
|
as double,
|
|
endTime: null == endTime
|
|
? _value.endTime
|
|
: endTime // ignore: cast_nullable_to_non_nullable
|
|
as double,
|
|
name: freezed == name
|
|
? _value.name
|
|
: name // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
description: freezed == description
|
|
? _value.description
|
|
: description // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
color: freezed == color
|
|
? _value.color
|
|
: color // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
),
|
|
);
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
|
|
class _$AnnotationEntityImpl implements _AnnotationEntity {
|
|
const _$AnnotationEntityImpl({
|
|
required this.id,
|
|
required this.sessionId,
|
|
required this.startTime,
|
|
required this.endTime,
|
|
this.name,
|
|
this.description,
|
|
this.color,
|
|
});
|
|
|
|
@override
|
|
final String id;
|
|
@override
|
|
final String sessionId;
|
|
@override
|
|
final double startTime;
|
|
@override
|
|
final double endTime;
|
|
@override
|
|
final String? name;
|
|
@override
|
|
final String? description;
|
|
@override
|
|
final String? color;
|
|
|
|
@override
|
|
String toString() {
|
|
return 'AnnotationEntity(id: $id, sessionId: $sessionId, startTime: $startTime, endTime: $endTime, name: $name, description: $description, color: $color)';
|
|
}
|
|
|
|
@override
|
|
bool operator ==(Object other) {
|
|
return identical(this, other) ||
|
|
(other.runtimeType == runtimeType &&
|
|
other is _$AnnotationEntityImpl &&
|
|
(identical(other.id, id) || other.id == id) &&
|
|
(identical(other.sessionId, sessionId) ||
|
|
other.sessionId == sessionId) &&
|
|
(identical(other.startTime, startTime) ||
|
|
other.startTime == startTime) &&
|
|
(identical(other.endTime, endTime) || other.endTime == endTime) &&
|
|
(identical(other.name, name) || other.name == name) &&
|
|
(identical(other.description, description) ||
|
|
other.description == description) &&
|
|
(identical(other.color, color) || other.color == color));
|
|
}
|
|
|
|
@override
|
|
int get hashCode => Object.hash(
|
|
runtimeType,
|
|
id,
|
|
sessionId,
|
|
startTime,
|
|
endTime,
|
|
name,
|
|
description,
|
|
color,
|
|
);
|
|
|
|
/// Create a copy of AnnotationEntity
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
_$$AnnotationEntityImplCopyWith<_$AnnotationEntityImpl> get copyWith =>
|
|
__$$AnnotationEntityImplCopyWithImpl<_$AnnotationEntityImpl>(
|
|
this,
|
|
_$identity,
|
|
);
|
|
}
|
|
|
|
abstract class _AnnotationEntity implements AnnotationEntity {
|
|
const factory _AnnotationEntity({
|
|
required final String id,
|
|
required final String sessionId,
|
|
required final double startTime,
|
|
required final double endTime,
|
|
final String? name,
|
|
final String? description,
|
|
final String? color,
|
|
}) = _$AnnotationEntityImpl;
|
|
|
|
@override
|
|
String get id;
|
|
@override
|
|
String get sessionId;
|
|
@override
|
|
double get startTime;
|
|
@override
|
|
double get endTime;
|
|
@override
|
|
String? get name;
|
|
@override
|
|
String? get description;
|
|
@override
|
|
String? get color;
|
|
|
|
/// Create a copy of AnnotationEntity
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@override
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
_$$AnnotationEntityImplCopyWith<_$AnnotationEntityImpl> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|