272 lines
9 KiB
Dart
272 lines
9 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 'report_data.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 _$ReportData {
|
|
Duration get totalDuration => throw _privateConstructorUsedError;
|
|
Map<int, Duration> get durationByProject =>
|
|
throw _privateConstructorUsedError;
|
|
List<double> get chartValues => throw _privateConstructorUsedError;
|
|
DateTime get periodStart => throw _privateConstructorUsedError;
|
|
DateTime get periodEnd => throw _privateConstructorUsedError;
|
|
|
|
/// Create a copy of ReportData
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
$ReportDataCopyWith<ReportData> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class $ReportDataCopyWith<$Res> {
|
|
factory $ReportDataCopyWith(
|
|
ReportData value,
|
|
$Res Function(ReportData) then,
|
|
) = _$ReportDataCopyWithImpl<$Res, ReportData>;
|
|
@useResult
|
|
$Res call({
|
|
Duration totalDuration,
|
|
Map<int, Duration> durationByProject,
|
|
List<double> chartValues,
|
|
DateTime periodStart,
|
|
DateTime periodEnd,
|
|
});
|
|
}
|
|
|
|
/// @nodoc
|
|
class _$ReportDataCopyWithImpl<$Res, $Val extends ReportData>
|
|
implements $ReportDataCopyWith<$Res> {
|
|
_$ReportDataCopyWithImpl(this._value, this._then);
|
|
|
|
// ignore: unused_field
|
|
final $Val _value;
|
|
// ignore: unused_field
|
|
final $Res Function($Val) _then;
|
|
|
|
/// Create a copy of ReportData
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? totalDuration = null,
|
|
Object? durationByProject = null,
|
|
Object? chartValues = null,
|
|
Object? periodStart = null,
|
|
Object? periodEnd = null,
|
|
}) {
|
|
return _then(
|
|
_value.copyWith(
|
|
totalDuration: null == totalDuration
|
|
? _value.totalDuration
|
|
: totalDuration // ignore: cast_nullable_to_non_nullable
|
|
as Duration,
|
|
durationByProject: null == durationByProject
|
|
? _value.durationByProject
|
|
: durationByProject // ignore: cast_nullable_to_non_nullable
|
|
as Map<int, Duration>,
|
|
chartValues: null == chartValues
|
|
? _value.chartValues
|
|
: chartValues // ignore: cast_nullable_to_non_nullable
|
|
as List<double>,
|
|
periodStart: null == periodStart
|
|
? _value.periodStart
|
|
: periodStart // ignore: cast_nullable_to_non_nullable
|
|
as DateTime,
|
|
periodEnd: null == periodEnd
|
|
? _value.periodEnd
|
|
: periodEnd // ignore: cast_nullable_to_non_nullable
|
|
as DateTime,
|
|
)
|
|
as $Val,
|
|
);
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class _$$ReportDataImplCopyWith<$Res>
|
|
implements $ReportDataCopyWith<$Res> {
|
|
factory _$$ReportDataImplCopyWith(
|
|
_$ReportDataImpl value,
|
|
$Res Function(_$ReportDataImpl) then,
|
|
) = __$$ReportDataImplCopyWithImpl<$Res>;
|
|
@override
|
|
@useResult
|
|
$Res call({
|
|
Duration totalDuration,
|
|
Map<int, Duration> durationByProject,
|
|
List<double> chartValues,
|
|
DateTime periodStart,
|
|
DateTime periodEnd,
|
|
});
|
|
}
|
|
|
|
/// @nodoc
|
|
class __$$ReportDataImplCopyWithImpl<$Res>
|
|
extends _$ReportDataCopyWithImpl<$Res, _$ReportDataImpl>
|
|
implements _$$ReportDataImplCopyWith<$Res> {
|
|
__$$ReportDataImplCopyWithImpl(
|
|
_$ReportDataImpl _value,
|
|
$Res Function(_$ReportDataImpl) _then,
|
|
) : super(_value, _then);
|
|
|
|
/// Create a copy of ReportData
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? totalDuration = null,
|
|
Object? durationByProject = null,
|
|
Object? chartValues = null,
|
|
Object? periodStart = null,
|
|
Object? periodEnd = null,
|
|
}) {
|
|
return _then(
|
|
_$ReportDataImpl(
|
|
totalDuration: null == totalDuration
|
|
? _value.totalDuration
|
|
: totalDuration // ignore: cast_nullable_to_non_nullable
|
|
as Duration,
|
|
durationByProject: null == durationByProject
|
|
? _value._durationByProject
|
|
: durationByProject // ignore: cast_nullable_to_non_nullable
|
|
as Map<int, Duration>,
|
|
chartValues: null == chartValues
|
|
? _value._chartValues
|
|
: chartValues // ignore: cast_nullable_to_non_nullable
|
|
as List<double>,
|
|
periodStart: null == periodStart
|
|
? _value.periodStart
|
|
: periodStart // ignore: cast_nullable_to_non_nullable
|
|
as DateTime,
|
|
periodEnd: null == periodEnd
|
|
? _value.periodEnd
|
|
: periodEnd // ignore: cast_nullable_to_non_nullable
|
|
as DateTime,
|
|
),
|
|
);
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
|
|
class _$ReportDataImpl implements _ReportData {
|
|
const _$ReportDataImpl({
|
|
required this.totalDuration,
|
|
required final Map<int, Duration> durationByProject,
|
|
final List<double> chartValues = const [],
|
|
required this.periodStart,
|
|
required this.periodEnd,
|
|
}) : _durationByProject = durationByProject,
|
|
_chartValues = chartValues;
|
|
|
|
@override
|
|
final Duration totalDuration;
|
|
final Map<int, Duration> _durationByProject;
|
|
@override
|
|
Map<int, Duration> get durationByProject {
|
|
if (_durationByProject is EqualUnmodifiableMapView)
|
|
return _durationByProject;
|
|
// ignore: implicit_dynamic_type
|
|
return EqualUnmodifiableMapView(_durationByProject);
|
|
}
|
|
|
|
final List<double> _chartValues;
|
|
@override
|
|
@JsonKey()
|
|
List<double> get chartValues {
|
|
if (_chartValues is EqualUnmodifiableListView) return _chartValues;
|
|
// ignore: implicit_dynamic_type
|
|
return EqualUnmodifiableListView(_chartValues);
|
|
}
|
|
|
|
@override
|
|
final DateTime periodStart;
|
|
@override
|
|
final DateTime periodEnd;
|
|
|
|
@override
|
|
String toString() {
|
|
return 'ReportData(totalDuration: $totalDuration, durationByProject: $durationByProject, chartValues: $chartValues, periodStart: $periodStart, periodEnd: $periodEnd)';
|
|
}
|
|
|
|
@override
|
|
bool operator ==(Object other) {
|
|
return identical(this, other) ||
|
|
(other.runtimeType == runtimeType &&
|
|
other is _$ReportDataImpl &&
|
|
(identical(other.totalDuration, totalDuration) ||
|
|
other.totalDuration == totalDuration) &&
|
|
const DeepCollectionEquality().equals(
|
|
other._durationByProject,
|
|
_durationByProject,
|
|
) &&
|
|
const DeepCollectionEquality().equals(
|
|
other._chartValues,
|
|
_chartValues,
|
|
) &&
|
|
(identical(other.periodStart, periodStart) ||
|
|
other.periodStart == periodStart) &&
|
|
(identical(other.periodEnd, periodEnd) ||
|
|
other.periodEnd == periodEnd));
|
|
}
|
|
|
|
@override
|
|
int get hashCode => Object.hash(
|
|
runtimeType,
|
|
totalDuration,
|
|
const DeepCollectionEquality().hash(_durationByProject),
|
|
const DeepCollectionEquality().hash(_chartValues),
|
|
periodStart,
|
|
periodEnd,
|
|
);
|
|
|
|
/// Create a copy of ReportData
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
_$$ReportDataImplCopyWith<_$ReportDataImpl> get copyWith =>
|
|
__$$ReportDataImplCopyWithImpl<_$ReportDataImpl>(this, _$identity);
|
|
}
|
|
|
|
abstract class _ReportData implements ReportData {
|
|
const factory _ReportData({
|
|
required final Duration totalDuration,
|
|
required final Map<int, Duration> durationByProject,
|
|
final List<double> chartValues,
|
|
required final DateTime periodStart,
|
|
required final DateTime periodEnd,
|
|
}) = _$ReportDataImpl;
|
|
|
|
@override
|
|
Duration get totalDuration;
|
|
@override
|
|
Map<int, Duration> get durationByProject;
|
|
@override
|
|
List<double> get chartValues;
|
|
@override
|
|
DateTime get periodStart;
|
|
@override
|
|
DateTime get periodEnd;
|
|
|
|
/// Create a copy of ReportData
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@override
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
_$$ReportDataImplCopyWith<_$ReportDataImpl> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|