You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2365 lines
69 KiB
2365 lines
69 KiB
// 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 'train_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#custom-getters-and-methods'); |
|
|
|
TrainData _$TrainDataFromJson(Map<String, dynamic> json) { |
|
return _TrainData.fromJson(json); |
|
} |
|
|
|
/// @nodoc |
|
mixin _$TrainData { |
|
String get rank => throw _privateConstructorUsedError; |
|
String get number => throw _privateConstructorUsedError; |
|
String get date => throw _privateConstructorUsedError; |
|
String get operator => throw _privateConstructorUsedError; |
|
List<TrainDataGroup> get groups => throw _privateConstructorUsedError; |
|
|
|
Map<String, dynamic> toJson() => throw _privateConstructorUsedError; |
|
@JsonKey(ignore: true) |
|
$TrainDataCopyWith<TrainData> get copyWith => |
|
throw _privateConstructorUsedError; |
|
} |
|
|
|
/// @nodoc |
|
abstract class $TrainDataCopyWith<$Res> { |
|
factory $TrainDataCopyWith(TrainData value, $Res Function(TrainData) then) = |
|
_$TrainDataCopyWithImpl<$Res, TrainData>; |
|
@useResult |
|
$Res call( |
|
{String rank, |
|
String number, |
|
String date, |
|
String operator, |
|
List<TrainDataGroup> groups}); |
|
} |
|
|
|
/// @nodoc |
|
class _$TrainDataCopyWithImpl<$Res, $Val extends TrainData> |
|
implements $TrainDataCopyWith<$Res> { |
|
_$TrainDataCopyWithImpl(this._value, this._then); |
|
|
|
// ignore: unused_field |
|
final $Val _value; |
|
// ignore: unused_field |
|
final $Res Function($Val) _then; |
|
|
|
@pragma('vm:prefer-inline') |
|
@override |
|
$Res call({ |
|
Object? rank = null, |
|
Object? number = null, |
|
Object? date = null, |
|
Object? operator = null, |
|
Object? groups = null, |
|
}) { |
|
return _then(_value.copyWith( |
|
rank: null == rank |
|
? _value.rank |
|
: rank // ignore: cast_nullable_to_non_nullable |
|
as String, |
|
number: null == number |
|
? _value.number |
|
: number // ignore: cast_nullable_to_non_nullable |
|
as String, |
|
date: null == date |
|
? _value.date |
|
: date // ignore: cast_nullable_to_non_nullable |
|
as String, |
|
operator: null == operator |
|
? _value.operator |
|
: operator // ignore: cast_nullable_to_non_nullable |
|
as String, |
|
groups: null == groups |
|
? _value.groups |
|
: groups // ignore: cast_nullable_to_non_nullable |
|
as List<TrainDataGroup>, |
|
) as $Val); |
|
} |
|
} |
|
|
|
/// @nodoc |
|
abstract class _$$_TrainDataCopyWith<$Res> implements $TrainDataCopyWith<$Res> { |
|
factory _$$_TrainDataCopyWith( |
|
_$_TrainData value, $Res Function(_$_TrainData) then) = |
|
__$$_TrainDataCopyWithImpl<$Res>; |
|
@override |
|
@useResult |
|
$Res call( |
|
{String rank, |
|
String number, |
|
String date, |
|
String operator, |
|
List<TrainDataGroup> groups}); |
|
} |
|
|
|
/// @nodoc |
|
class __$$_TrainDataCopyWithImpl<$Res> |
|
extends _$TrainDataCopyWithImpl<$Res, _$_TrainData> |
|
implements _$$_TrainDataCopyWith<$Res> { |
|
__$$_TrainDataCopyWithImpl( |
|
_$_TrainData _value, $Res Function(_$_TrainData) _then) |
|
: super(_value, _then); |
|
|
|
@pragma('vm:prefer-inline') |
|
@override |
|
$Res call({ |
|
Object? rank = null, |
|
Object? number = null, |
|
Object? date = null, |
|
Object? operator = null, |
|
Object? groups = null, |
|
}) { |
|
return _then(_$_TrainData( |
|
rank: null == rank |
|
? _value.rank |
|
: rank // ignore: cast_nullable_to_non_nullable |
|
as String, |
|
number: null == number |
|
? _value.number |
|
: number // ignore: cast_nullable_to_non_nullable |
|
as String, |
|
date: null == date |
|
? _value.date |
|
: date // ignore: cast_nullable_to_non_nullable |
|
as String, |
|
operator: null == operator |
|
? _value.operator |
|
: operator // ignore: cast_nullable_to_non_nullable |
|
as String, |
|
groups: null == groups |
|
? _value._groups |
|
: groups // ignore: cast_nullable_to_non_nullable |
|
as List<TrainDataGroup>, |
|
)); |
|
} |
|
} |
|
|
|
/// @nodoc |
|
@JsonSerializable() |
|
class _$_TrainData extends _TrainData { |
|
const _$_TrainData( |
|
{required this.rank, |
|
required this.number, |
|
required this.date, |
|
required this.operator, |
|
required final List<TrainDataGroup> groups}) |
|
: _groups = groups, |
|
super._(); |
|
|
|
factory _$_TrainData.fromJson(Map<String, dynamic> json) => |
|
_$$_TrainDataFromJson(json); |
|
|
|
@override |
|
final String rank; |
|
@override |
|
final String number; |
|
@override |
|
final String date; |
|
@override |
|
final String operator; |
|
final List<TrainDataGroup> _groups; |
|
@override |
|
List<TrainDataGroup> get groups { |
|
if (_groups is EqualUnmodifiableListView) return _groups; |
|
// ignore: implicit_dynamic_type |
|
return EqualUnmodifiableListView(_groups); |
|
} |
|
|
|
@override |
|
String toString() { |
|
return 'TrainData(rank: $rank, number: $number, date: $date, operator: $operator, groups: $groups)'; |
|
} |
|
|
|
@override |
|
bool operator ==(dynamic other) { |
|
return identical(this, other) || |
|
(other.runtimeType == runtimeType && |
|
other is _$_TrainData && |
|
(identical(other.rank, rank) || other.rank == rank) && |
|
(identical(other.number, number) || other.number == number) && |
|
(identical(other.date, date) || other.date == date) && |
|
(identical(other.operator, operator) || |
|
other.operator == operator) && |
|
const DeepCollectionEquality().equals(other._groups, _groups)); |
|
} |
|
|
|
@JsonKey(ignore: true) |
|
@override |
|
int get hashCode => Object.hash(runtimeType, rank, number, date, operator, |
|
const DeepCollectionEquality().hash(_groups)); |
|
|
|
@JsonKey(ignore: true) |
|
@override |
|
@pragma('vm:prefer-inline') |
|
_$$_TrainDataCopyWith<_$_TrainData> get copyWith => |
|
__$$_TrainDataCopyWithImpl<_$_TrainData>(this, _$identity); |
|
|
|
@override |
|
Map<String, dynamic> toJson() { |
|
return _$$_TrainDataToJson( |
|
this, |
|
); |
|
} |
|
} |
|
|
|
abstract class _TrainData extends TrainData { |
|
const factory _TrainData( |
|
{required final String rank, |
|
required final String number, |
|
required final String date, |
|
required final String operator, |
|
required final List<TrainDataGroup> groups}) = _$_TrainData; |
|
const _TrainData._() : super._(); |
|
|
|
factory _TrainData.fromJson(Map<String, dynamic> json) = |
|
_$_TrainData.fromJson; |
|
|
|
@override |
|
String get rank; |
|
@override |
|
String get number; |
|
@override |
|
String get date; |
|
@override |
|
String get operator; |
|
@override |
|
List<TrainDataGroup> get groups; |
|
@override |
|
@JsonKey(ignore: true) |
|
_$$_TrainDataCopyWith<_$_TrainData> get copyWith => |
|
throw _privateConstructorUsedError; |
|
} |
|
|
|
TrainDataGroup _$TrainDataGroupFromJson(Map<String, dynamic> json) { |
|
return _TrainDataGroup.fromJson(json); |
|
} |
|
|
|
/// @nodoc |
|
mixin _$TrainDataGroup { |
|
TrainDataRoute get route => throw _privateConstructorUsedError; |
|
List<TrainDataStation> get stations => throw _privateConstructorUsedError; |
|
TrainDataStatus? get status => throw _privateConstructorUsedError; |
|
|
|
Map<String, dynamic> toJson() => throw _privateConstructorUsedError; |
|
@JsonKey(ignore: true) |
|
$TrainDataGroupCopyWith<TrainDataGroup> get copyWith => |
|
throw _privateConstructorUsedError; |
|
} |
|
|
|
/// @nodoc |
|
abstract class $TrainDataGroupCopyWith<$Res> { |
|
factory $TrainDataGroupCopyWith( |
|
TrainDataGroup value, $Res Function(TrainDataGroup) then) = |
|
_$TrainDataGroupCopyWithImpl<$Res, TrainDataGroup>; |
|
@useResult |
|
$Res call( |
|
{TrainDataRoute route, |
|
List<TrainDataStation> stations, |
|
TrainDataStatus? status}); |
|
|
|
$TrainDataRouteCopyWith<$Res> get route; |
|
$TrainDataStatusCopyWith<$Res>? get status; |
|
} |
|
|
|
/// @nodoc |
|
class _$TrainDataGroupCopyWithImpl<$Res, $Val extends TrainDataGroup> |
|
implements $TrainDataGroupCopyWith<$Res> { |
|
_$TrainDataGroupCopyWithImpl(this._value, this._then); |
|
|
|
// ignore: unused_field |
|
final $Val _value; |
|
// ignore: unused_field |
|
final $Res Function($Val) _then; |
|
|
|
@pragma('vm:prefer-inline') |
|
@override |
|
$Res call({ |
|
Object? route = null, |
|
Object? stations = null, |
|
Object? status = freezed, |
|
}) { |
|
return _then(_value.copyWith( |
|
route: null == route |
|
? _value.route |
|
: route // ignore: cast_nullable_to_non_nullable |
|
as TrainDataRoute, |
|
stations: null == stations |
|
? _value.stations |
|
: stations // ignore: cast_nullable_to_non_nullable |
|
as List<TrainDataStation>, |
|
status: freezed == status |
|
? _value.status |
|
: status // ignore: cast_nullable_to_non_nullable |
|
as TrainDataStatus?, |
|
) as $Val); |
|
} |
|
|
|
@override |
|
@pragma('vm:prefer-inline') |
|
$TrainDataRouteCopyWith<$Res> get route { |
|
return $TrainDataRouteCopyWith<$Res>(_value.route, (value) { |
|
return _then(_value.copyWith(route: value) as $Val); |
|
}); |
|
} |
|
|
|
@override |
|
@pragma('vm:prefer-inline') |
|
$TrainDataStatusCopyWith<$Res>? get status { |
|
if (_value.status == null) { |
|
return null; |
|
} |
|
|
|
return $TrainDataStatusCopyWith<$Res>(_value.status!, (value) { |
|
return _then(_value.copyWith(status: value) as $Val); |
|
}); |
|
} |
|
} |
|
|
|
/// @nodoc |
|
abstract class _$$_TrainDataGroupCopyWith<$Res> |
|
implements $TrainDataGroupCopyWith<$Res> { |
|
factory _$$_TrainDataGroupCopyWith( |
|
_$_TrainDataGroup value, $Res Function(_$_TrainDataGroup) then) = |
|
__$$_TrainDataGroupCopyWithImpl<$Res>; |
|
@override |
|
@useResult |
|
$Res call( |
|
{TrainDataRoute route, |
|
List<TrainDataStation> stations, |
|
TrainDataStatus? status}); |
|
|
|
@override |
|
$TrainDataRouteCopyWith<$Res> get route; |
|
@override |
|
$TrainDataStatusCopyWith<$Res>? get status; |
|
} |
|
|
|
/// @nodoc |
|
class __$$_TrainDataGroupCopyWithImpl<$Res> |
|
extends _$TrainDataGroupCopyWithImpl<$Res, _$_TrainDataGroup> |
|
implements _$$_TrainDataGroupCopyWith<$Res> { |
|
__$$_TrainDataGroupCopyWithImpl( |
|
_$_TrainDataGroup _value, $Res Function(_$_TrainDataGroup) _then) |
|
: super(_value, _then); |
|
|
|
@pragma('vm:prefer-inline') |
|
@override |
|
$Res call({ |
|
Object? route = null, |
|
Object? stations = null, |
|
Object? status = freezed, |
|
}) { |
|
return _then(_$_TrainDataGroup( |
|
route: null == route |
|
? _value.route |
|
: route // ignore: cast_nullable_to_non_nullable |
|
as TrainDataRoute, |
|
stations: null == stations |
|
? _value._stations |
|
: stations // ignore: cast_nullable_to_non_nullable |
|
as List<TrainDataStation>, |
|
status: freezed == status |
|
? _value.status |
|
: status // ignore: cast_nullable_to_non_nullable |
|
as TrainDataStatus?, |
|
)); |
|
} |
|
} |
|
|
|
/// @nodoc |
|
@JsonSerializable() |
|
class _$_TrainDataGroup implements _TrainDataGroup { |
|
const _$_TrainDataGroup( |
|
{required this.route, |
|
required final List<TrainDataStation> stations, |
|
this.status}) |
|
: _stations = stations; |
|
|
|
factory _$_TrainDataGroup.fromJson(Map<String, dynamic> json) => |
|
_$$_TrainDataGroupFromJson(json); |
|
|
|
@override |
|
final TrainDataRoute route; |
|
final List<TrainDataStation> _stations; |
|
@override |
|
List<TrainDataStation> get stations { |
|
if (_stations is EqualUnmodifiableListView) return _stations; |
|
// ignore: implicit_dynamic_type |
|
return EqualUnmodifiableListView(_stations); |
|
} |
|
|
|
@override |
|
final TrainDataStatus? status; |
|
|
|
@override |
|
String toString() { |
|
return 'TrainDataGroup(route: $route, stations: $stations, status: $status)'; |
|
} |
|
|
|
@override |
|
bool operator ==(dynamic other) { |
|
return identical(this, other) || |
|
(other.runtimeType == runtimeType && |
|
other is _$_TrainDataGroup && |
|
(identical(other.route, route) || other.route == route) && |
|
const DeepCollectionEquality().equals(other._stations, _stations) && |
|
(identical(other.status, status) || other.status == status)); |
|
} |
|
|
|
@JsonKey(ignore: true) |
|
@override |
|
int get hashCode => Object.hash(runtimeType, route, |
|
const DeepCollectionEquality().hash(_stations), status); |
|
|
|
@JsonKey(ignore: true) |
|
@override |
|
@pragma('vm:prefer-inline') |
|
_$$_TrainDataGroupCopyWith<_$_TrainDataGroup> get copyWith => |
|
__$$_TrainDataGroupCopyWithImpl<_$_TrainDataGroup>(this, _$identity); |
|
|
|
@override |
|
Map<String, dynamic> toJson() { |
|
return _$$_TrainDataGroupToJson( |
|
this, |
|
); |
|
} |
|
} |
|
|
|
abstract class _TrainDataGroup implements TrainDataGroup { |
|
const factory _TrainDataGroup( |
|
{required final TrainDataRoute route, |
|
required final List<TrainDataStation> stations, |
|
final TrainDataStatus? status}) = _$_TrainDataGroup; |
|
|
|
factory _TrainDataGroup.fromJson(Map<String, dynamic> json) = |
|
_$_TrainDataGroup.fromJson; |
|
|
|
@override |
|
TrainDataRoute get route; |
|
@override |
|
List<TrainDataStation> get stations; |
|
@override |
|
TrainDataStatus? get status; |
|
@override |
|
@JsonKey(ignore: true) |
|
_$$_TrainDataGroupCopyWith<_$_TrainDataGroup> get copyWith => |
|
throw _privateConstructorUsedError; |
|
} |
|
|
|
TrainDataRoute _$TrainDataRouteFromJson(Map<String, dynamic> json) { |
|
return _TrainDataRoute.fromJson(json); |
|
} |
|
|
|
/// @nodoc |
|
mixin _$TrainDataRoute { |
|
String get from => throw _privateConstructorUsedError; |
|
String get to => throw _privateConstructorUsedError; |
|
|
|
Map<String, dynamic> toJson() => throw _privateConstructorUsedError; |
|
@JsonKey(ignore: true) |
|
$TrainDataRouteCopyWith<TrainDataRoute> get copyWith => |
|
throw _privateConstructorUsedError; |
|
} |
|
|
|
/// @nodoc |
|
abstract class $TrainDataRouteCopyWith<$Res> { |
|
factory $TrainDataRouteCopyWith( |
|
TrainDataRoute value, $Res Function(TrainDataRoute) then) = |
|
_$TrainDataRouteCopyWithImpl<$Res, TrainDataRoute>; |
|
@useResult |
|
$Res call({String from, String to}); |
|
} |
|
|
|
/// @nodoc |
|
class _$TrainDataRouteCopyWithImpl<$Res, $Val extends TrainDataRoute> |
|
implements $TrainDataRouteCopyWith<$Res> { |
|
_$TrainDataRouteCopyWithImpl(this._value, this._then); |
|
|
|
// ignore: unused_field |
|
final $Val _value; |
|
// ignore: unused_field |
|
final $Res Function($Val) _then; |
|
|
|
@pragma('vm:prefer-inline') |
|
@override |
|
$Res call({ |
|
Object? from = null, |
|
Object? to = null, |
|
}) { |
|
return _then(_value.copyWith( |
|
from: null == from |
|
? _value.from |
|
: from // ignore: cast_nullable_to_non_nullable |
|
as String, |
|
to: null == to |
|
? _value.to |
|
: to // ignore: cast_nullable_to_non_nullable |
|
as String, |
|
) as $Val); |
|
} |
|
} |
|
|
|
/// @nodoc |
|
abstract class _$$_TrainDataRouteCopyWith<$Res> |
|
implements $TrainDataRouteCopyWith<$Res> { |
|
factory _$$_TrainDataRouteCopyWith( |
|
_$_TrainDataRoute value, $Res Function(_$_TrainDataRoute) then) = |
|
__$$_TrainDataRouteCopyWithImpl<$Res>; |
|
@override |
|
@useResult |
|
$Res call({String from, String to}); |
|
} |
|
|
|
/// @nodoc |
|
class __$$_TrainDataRouteCopyWithImpl<$Res> |
|
extends _$TrainDataRouteCopyWithImpl<$Res, _$_TrainDataRoute> |
|
implements _$$_TrainDataRouteCopyWith<$Res> { |
|
__$$_TrainDataRouteCopyWithImpl( |
|
_$_TrainDataRoute _value, $Res Function(_$_TrainDataRoute) _then) |
|
: super(_value, _then); |
|
|
|
@pragma('vm:prefer-inline') |
|
@override |
|
$Res call({ |
|
Object? from = null, |
|
Object? to = null, |
|
}) { |
|
return _then(_$_TrainDataRoute( |
|
from: null == from |
|
? _value.from |
|
: from // ignore: cast_nullable_to_non_nullable |
|
as String, |
|
to: null == to |
|
? _value.to |
|
: to // ignore: cast_nullable_to_non_nullable |
|
as String, |
|
)); |
|
} |
|
} |
|
|
|
/// @nodoc |
|
@JsonSerializable() |
|
class _$_TrainDataRoute implements _TrainDataRoute { |
|
const _$_TrainDataRoute({required this.from, required this.to}); |
|
|
|
factory _$_TrainDataRoute.fromJson(Map<String, dynamic> json) => |
|
_$$_TrainDataRouteFromJson(json); |
|
|
|
@override |
|
final String from; |
|
@override |
|
final String to; |
|
|
|
@override |
|
String toString() { |
|
return 'TrainDataRoute(from: $from, to: $to)'; |
|
} |
|
|
|
@override |
|
bool operator ==(dynamic other) { |
|
return identical(this, other) || |
|
(other.runtimeType == runtimeType && |
|
other is _$_TrainDataRoute && |
|
(identical(other.from, from) || other.from == from) && |
|
(identical(other.to, to) || other.to == to)); |
|
} |
|
|
|
@JsonKey(ignore: true) |
|
@override |
|
int get hashCode => Object.hash(runtimeType, from, to); |
|
|
|
@JsonKey(ignore: true) |
|
@override |
|
@pragma('vm:prefer-inline') |
|
_$$_TrainDataRouteCopyWith<_$_TrainDataRoute> get copyWith => |
|
__$$_TrainDataRouteCopyWithImpl<_$_TrainDataRoute>(this, _$identity); |
|
|
|
@override |
|
Map<String, dynamic> toJson() { |
|
return _$$_TrainDataRouteToJson( |
|
this, |
|
); |
|
} |
|
} |
|
|
|
abstract class _TrainDataRoute implements TrainDataRoute { |
|
const factory _TrainDataRoute( |
|
{required final String from, |
|
required final String to}) = _$_TrainDataRoute; |
|
|
|
factory _TrainDataRoute.fromJson(Map<String, dynamic> json) = |
|
_$_TrainDataRoute.fromJson; |
|
|
|
@override |
|
String get from; |
|
@override |
|
String get to; |
|
@override |
|
@JsonKey(ignore: true) |
|
_$$_TrainDataRouteCopyWith<_$_TrainDataRoute> get copyWith => |
|
throw _privateConstructorUsedError; |
|
} |
|
|
|
TrainDataStation _$TrainDataStationFromJson(Map<String, dynamic> json) { |
|
return _TrainDataStation.fromJson(json); |
|
} |
|
|
|
/// @nodoc |
|
mixin _$TrainDataStation { |
|
String get name => throw _privateConstructorUsedError; |
|
String get linkName => throw _privateConstructorUsedError; |
|
int get km => throw _privateConstructorUsedError; |
|
int? get stoppingTime => throw _privateConstructorUsedError; |
|
String? get platform => throw _privateConstructorUsedError; |
|
StationArrDepTime? get arrival => throw _privateConstructorUsedError; |
|
StationArrDepTime? get departure => throw _privateConstructorUsedError; |
|
@TrainDataNoteConverter() |
|
List<TrainDataNote> get notes => throw _privateConstructorUsedError; |
|
|
|
Map<String, dynamic> toJson() => throw _privateConstructorUsedError; |
|
@JsonKey(ignore: true) |
|
$TrainDataStationCopyWith<TrainDataStation> get copyWith => |
|
throw _privateConstructorUsedError; |
|
} |
|
|
|
/// @nodoc |
|
abstract class $TrainDataStationCopyWith<$Res> { |
|
factory $TrainDataStationCopyWith( |
|
TrainDataStation value, $Res Function(TrainDataStation) then) = |
|
_$TrainDataStationCopyWithImpl<$Res, TrainDataStation>; |
|
@useResult |
|
$Res call( |
|
{String name, |
|
String linkName, |
|
int km, |
|
int? stoppingTime, |
|
String? platform, |
|
StationArrDepTime? arrival, |
|
StationArrDepTime? departure, |
|
@TrainDataNoteConverter() List<TrainDataNote> notes}); |
|
|
|
$StationArrDepTimeCopyWith<$Res>? get arrival; |
|
$StationArrDepTimeCopyWith<$Res>? get departure; |
|
} |
|
|
|
/// @nodoc |
|
class _$TrainDataStationCopyWithImpl<$Res, $Val extends TrainDataStation> |
|
implements $TrainDataStationCopyWith<$Res> { |
|
_$TrainDataStationCopyWithImpl(this._value, this._then); |
|
|
|
// ignore: unused_field |
|
final $Val _value; |
|
// ignore: unused_field |
|
final $Res Function($Val) _then; |
|
|
|
@pragma('vm:prefer-inline') |
|
@override |
|
$Res call({ |
|
Object? name = null, |
|
Object? linkName = null, |
|
Object? km = null, |
|
Object? stoppingTime = freezed, |
|
Object? platform = freezed, |
|
Object? arrival = freezed, |
|
Object? departure = freezed, |
|
Object? notes = null, |
|
}) { |
|
return _then(_value.copyWith( |
|
name: null == name |
|
? _value.name |
|
: name // ignore: cast_nullable_to_non_nullable |
|
as String, |
|
linkName: null == linkName |
|
? _value.linkName |
|
: linkName // ignore: cast_nullable_to_non_nullable |
|
as String, |
|
km: null == km |
|
? _value.km |
|
: km // ignore: cast_nullable_to_non_nullable |
|
as int, |
|
stoppingTime: freezed == stoppingTime |
|
? _value.stoppingTime |
|
: stoppingTime // ignore: cast_nullable_to_non_nullable |
|
as int?, |
|
platform: freezed == platform |
|
? _value.platform |
|
: platform // ignore: cast_nullable_to_non_nullable |
|
as String?, |
|
arrival: freezed == arrival |
|
? _value.arrival |
|
: arrival // ignore: cast_nullable_to_non_nullable |
|
as StationArrDepTime?, |
|
departure: freezed == departure |
|
? _value.departure |
|
: departure // ignore: cast_nullable_to_non_nullable |
|
as StationArrDepTime?, |
|
notes: null == notes |
|
? _value.notes |
|
: notes // ignore: cast_nullable_to_non_nullable |
|
as List<TrainDataNote>, |
|
) as $Val); |
|
} |
|
|
|
@override |
|
@pragma('vm:prefer-inline') |
|
$StationArrDepTimeCopyWith<$Res>? get arrival { |
|
if (_value.arrival == null) { |
|
return null; |
|
} |
|
|
|
return $StationArrDepTimeCopyWith<$Res>(_value.arrival!, (value) { |
|
return _then(_value.copyWith(arrival: value) as $Val); |
|
}); |
|
} |
|
|
|
@override |
|
@pragma('vm:prefer-inline') |
|
$StationArrDepTimeCopyWith<$Res>? get departure { |
|
if (_value.departure == null) { |
|
return null; |
|
} |
|
|
|
return $StationArrDepTimeCopyWith<$Res>(_value.departure!, (value) { |
|
return _then(_value.copyWith(departure: value) as $Val); |
|
}); |
|
} |
|
} |
|
|
|
/// @nodoc |
|
abstract class _$$_TrainDataStationCopyWith<$Res> |
|
implements $TrainDataStationCopyWith<$Res> { |
|
factory _$$_TrainDataStationCopyWith( |
|
_$_TrainDataStation value, $Res Function(_$_TrainDataStation) then) = |
|
__$$_TrainDataStationCopyWithImpl<$Res>; |
|
@override |
|
@useResult |
|
$Res call( |
|
{String name, |
|
String linkName, |
|
int km, |
|
int? stoppingTime, |
|
String? platform, |
|
StationArrDepTime? arrival, |
|
StationArrDepTime? departure, |
|
@TrainDataNoteConverter() List<TrainDataNote> notes}); |
|
|
|
@override |
|
$StationArrDepTimeCopyWith<$Res>? get arrival; |
|
@override |
|
$StationArrDepTimeCopyWith<$Res>? get departure; |
|
} |
|
|
|
/// @nodoc |
|
class __$$_TrainDataStationCopyWithImpl<$Res> |
|
extends _$TrainDataStationCopyWithImpl<$Res, _$_TrainDataStation> |
|
implements _$$_TrainDataStationCopyWith<$Res> { |
|
__$$_TrainDataStationCopyWithImpl( |
|
_$_TrainDataStation _value, $Res Function(_$_TrainDataStation) _then) |
|
: super(_value, _then); |
|
|
|
@pragma('vm:prefer-inline') |
|
@override |
|
$Res call({ |
|
Object? name = null, |
|
Object? linkName = null, |
|
Object? km = null, |
|
Object? stoppingTime = freezed, |
|
Object? platform = freezed, |
|
Object? arrival = freezed, |
|
Object? departure = freezed, |
|
Object? notes = null, |
|
}) { |
|
return _then(_$_TrainDataStation( |
|
name: null == name |
|
? _value.name |
|
: name // ignore: cast_nullable_to_non_nullable |
|
as String, |
|
linkName: null == linkName |
|
? _value.linkName |
|
: linkName // ignore: cast_nullable_to_non_nullable |
|
as String, |
|
km: null == km |
|
? _value.km |
|
: km // ignore: cast_nullable_to_non_nullable |
|
as int, |
|
stoppingTime: freezed == stoppingTime |
|
? _value.stoppingTime |
|
: stoppingTime // ignore: cast_nullable_to_non_nullable |
|
as int?, |
|
platform: freezed == platform |
|
? _value.platform |
|
: platform // ignore: cast_nullable_to_non_nullable |
|
as String?, |
|
arrival: freezed == arrival |
|
? _value.arrival |
|
: arrival // ignore: cast_nullable_to_non_nullable |
|
as StationArrDepTime?, |
|
departure: freezed == departure |
|
? _value.departure |
|
: departure // ignore: cast_nullable_to_non_nullable |
|
as StationArrDepTime?, |
|
notes: null == notes |
|
? _value._notes |
|
: notes // ignore: cast_nullable_to_non_nullable |
|
as List<TrainDataNote>, |
|
)); |
|
} |
|
} |
|
|
|
/// @nodoc |
|
@JsonSerializable() |
|
class _$_TrainDataStation implements _TrainDataStation { |
|
const _$_TrainDataStation( |
|
{required this.name, |
|
required this.linkName, |
|
required this.km, |
|
this.stoppingTime, |
|
this.platform, |
|
this.arrival, |
|
this.departure, |
|
@TrainDataNoteConverter() required final List<TrainDataNote> notes}) |
|
: _notes = notes; |
|
|
|
factory _$_TrainDataStation.fromJson(Map<String, dynamic> json) => |
|
_$$_TrainDataStationFromJson(json); |
|
|
|
@override |
|
final String name; |
|
@override |
|
final String linkName; |
|
@override |
|
final int km; |
|
@override |
|
final int? stoppingTime; |
|
@override |
|
final String? platform; |
|
@override |
|
final StationArrDepTime? arrival; |
|
@override |
|
final StationArrDepTime? departure; |
|
final List<TrainDataNote> _notes; |
|
@override |
|
@TrainDataNoteConverter() |
|
List<TrainDataNote> get notes { |
|
if (_notes is EqualUnmodifiableListView) return _notes; |
|
// ignore: implicit_dynamic_type |
|
return EqualUnmodifiableListView(_notes); |
|
} |
|
|
|
@override |
|
String toString() { |
|
return 'TrainDataStation(name: $name, linkName: $linkName, km: $km, stoppingTime: $stoppingTime, platform: $platform, arrival: $arrival, departure: $departure, notes: $notes)'; |
|
} |
|
|
|
@override |
|
bool operator ==(dynamic other) { |
|
return identical(this, other) || |
|
(other.runtimeType == runtimeType && |
|
other is _$_TrainDataStation && |
|
(identical(other.name, name) || other.name == name) && |
|
(identical(other.linkName, linkName) || |
|
other.linkName == linkName) && |
|
(identical(other.km, km) || other.km == km) && |
|
(identical(other.stoppingTime, stoppingTime) || |
|
other.stoppingTime == stoppingTime) && |
|
(identical(other.platform, platform) || |
|
other.platform == platform) && |
|
(identical(other.arrival, arrival) || other.arrival == arrival) && |
|
(identical(other.departure, departure) || |
|
other.departure == departure) && |
|
const DeepCollectionEquality().equals(other._notes, _notes)); |
|
} |
|
|
|
@JsonKey(ignore: true) |
|
@override |
|
int get hashCode => Object.hash( |
|
runtimeType, |
|
name, |
|
linkName, |
|
km, |
|
stoppingTime, |
|
platform, |
|
arrival, |
|
departure, |
|
const DeepCollectionEquality().hash(_notes)); |
|
|
|
@JsonKey(ignore: true) |
|
@override |
|
@pragma('vm:prefer-inline') |
|
_$$_TrainDataStationCopyWith<_$_TrainDataStation> get copyWith => |
|
__$$_TrainDataStationCopyWithImpl<_$_TrainDataStation>(this, _$identity); |
|
|
|
@override |
|
Map<String, dynamic> toJson() { |
|
return _$$_TrainDataStationToJson( |
|
this, |
|
); |
|
} |
|
} |
|
|
|
abstract class _TrainDataStation implements TrainDataStation { |
|
const factory _TrainDataStation( |
|
{required final String name, |
|
required final String linkName, |
|
required final int km, |
|
final int? stoppingTime, |
|
final String? platform, |
|
final StationArrDepTime? arrival, |
|
final StationArrDepTime? departure, |
|
@TrainDataNoteConverter() required final List<TrainDataNote> notes}) = |
|
_$_TrainDataStation; |
|
|
|
factory _TrainDataStation.fromJson(Map<String, dynamic> json) = |
|
_$_TrainDataStation.fromJson; |
|
|
|
@override |
|
String get name; |
|
@override |
|
String get linkName; |
|
@override |
|
int get km; |
|
@override |
|
int? get stoppingTime; |
|
@override |
|
String? get platform; |
|
@override |
|
StationArrDepTime? get arrival; |
|
@override |
|
StationArrDepTime? get departure; |
|
@override |
|
@TrainDataNoteConverter() |
|
List<TrainDataNote> get notes; |
|
@override |
|
@JsonKey(ignore: true) |
|
_$$_TrainDataStationCopyWith<_$_TrainDataStation> get copyWith => |
|
throw _privateConstructorUsedError; |
|
} |
|
|
|
StationArrDepTime _$StationArrDepTimeFromJson(Map<String, dynamic> json) { |
|
return _StationArrDepTime.fromJson(json); |
|
} |
|
|
|
/// @nodoc |
|
mixin _$StationArrDepTime { |
|
DateTime get scheduleTime => throw _privateConstructorUsedError; |
|
StationArrDepTimeStatus? get status => throw _privateConstructorUsedError; |
|
|
|
Map<String, dynamic> toJson() => throw _privateConstructorUsedError; |
|
@JsonKey(ignore: true) |
|
$StationArrDepTimeCopyWith<StationArrDepTime> get copyWith => |
|
throw _privateConstructorUsedError; |
|
} |
|
|
|
/// @nodoc |
|
abstract class $StationArrDepTimeCopyWith<$Res> { |
|
factory $StationArrDepTimeCopyWith( |
|
StationArrDepTime value, $Res Function(StationArrDepTime) then) = |
|
_$StationArrDepTimeCopyWithImpl<$Res, StationArrDepTime>; |
|
@useResult |
|
$Res call({DateTime scheduleTime, StationArrDepTimeStatus? status}); |
|
|
|
$StationArrDepTimeStatusCopyWith<$Res>? get status; |
|
} |
|
|
|
/// @nodoc |
|
class _$StationArrDepTimeCopyWithImpl<$Res, $Val extends StationArrDepTime> |
|
implements $StationArrDepTimeCopyWith<$Res> { |
|
_$StationArrDepTimeCopyWithImpl(this._value, this._then); |
|
|
|
// ignore: unused_field |
|
final $Val _value; |
|
// ignore: unused_field |
|
final $Res Function($Val) _then; |
|
|
|
@pragma('vm:prefer-inline') |
|
@override |
|
$Res call({ |
|
Object? scheduleTime = null, |
|
Object? status = freezed, |
|
}) { |
|
return _then(_value.copyWith( |
|
scheduleTime: null == scheduleTime |
|
? _value.scheduleTime |
|
: scheduleTime // ignore: cast_nullable_to_non_nullable |
|
as DateTime, |
|
status: freezed == status |
|
? _value.status |
|
: status // ignore: cast_nullable_to_non_nullable |
|
as StationArrDepTimeStatus?, |
|
) as $Val); |
|
} |
|
|
|
@override |
|
@pragma('vm:prefer-inline') |
|
$StationArrDepTimeStatusCopyWith<$Res>? get status { |
|
if (_value.status == null) { |
|
return null; |
|
} |
|
|
|
return $StationArrDepTimeStatusCopyWith<$Res>(_value.status!, (value) { |
|
return _then(_value.copyWith(status: value) as $Val); |
|
}); |
|
} |
|
} |
|
|
|
/// @nodoc |
|
abstract class _$$_StationArrDepTimeCopyWith<$Res> |
|
implements $StationArrDepTimeCopyWith<$Res> { |
|
factory _$$_StationArrDepTimeCopyWith(_$_StationArrDepTime value, |
|
$Res Function(_$_StationArrDepTime) then) = |
|
__$$_StationArrDepTimeCopyWithImpl<$Res>; |
|
@override |
|
@useResult |
|
$Res call({DateTime scheduleTime, StationArrDepTimeStatus? status}); |
|
|
|
@override |
|
$StationArrDepTimeStatusCopyWith<$Res>? get status; |
|
} |
|
|
|
/// @nodoc |
|
class __$$_StationArrDepTimeCopyWithImpl<$Res> |
|
extends _$StationArrDepTimeCopyWithImpl<$Res, _$_StationArrDepTime> |
|
implements _$$_StationArrDepTimeCopyWith<$Res> { |
|
__$$_StationArrDepTimeCopyWithImpl( |
|
_$_StationArrDepTime _value, $Res Function(_$_StationArrDepTime) _then) |
|
: super(_value, _then); |
|
|
|
@pragma('vm:prefer-inline') |
|
@override |
|
$Res call({ |
|
Object? scheduleTime = null, |
|
Object? status = freezed, |
|
}) { |
|
return _then(_$_StationArrDepTime( |
|
scheduleTime: null == scheduleTime |
|
? _value.scheduleTime |
|
: scheduleTime // ignore: cast_nullable_to_non_nullable |
|
as DateTime, |
|
status: freezed == status |
|
? _value.status |
|
: status // ignore: cast_nullable_to_non_nullable |
|
as StationArrDepTimeStatus?, |
|
)); |
|
} |
|
} |
|
|
|
/// @nodoc |
|
@JsonSerializable() |
|
class _$_StationArrDepTime implements _StationArrDepTime { |
|
const _$_StationArrDepTime({required this.scheduleTime, this.status}); |
|
|
|
factory _$_StationArrDepTime.fromJson(Map<String, dynamic> json) => |
|
_$$_StationArrDepTimeFromJson(json); |
|
|
|
@override |
|
final DateTime scheduleTime; |
|
@override |
|
final StationArrDepTimeStatus? status; |
|
|
|
@override |
|
String toString() { |
|
return 'StationArrDepTime(scheduleTime: $scheduleTime, status: $status)'; |
|
} |
|
|
|
@override |
|
bool operator ==(dynamic other) { |
|
return identical(this, other) || |
|
(other.runtimeType == runtimeType && |
|
other is _$_StationArrDepTime && |
|
(identical(other.scheduleTime, scheduleTime) || |
|
other.scheduleTime == scheduleTime) && |
|
(identical(other.status, status) || other.status == status)); |
|
} |
|
|
|
@JsonKey(ignore: true) |
|
@override |
|
int get hashCode => Object.hash(runtimeType, scheduleTime, status); |
|
|
|
@JsonKey(ignore: true) |
|
@override |
|
@pragma('vm:prefer-inline') |
|
_$$_StationArrDepTimeCopyWith<_$_StationArrDepTime> get copyWith => |
|
__$$_StationArrDepTimeCopyWithImpl<_$_StationArrDepTime>( |
|
this, _$identity); |
|
|
|
@override |
|
Map<String, dynamic> toJson() { |
|
return _$$_StationArrDepTimeToJson( |
|
this, |
|
); |
|
} |
|
} |
|
|
|
abstract class _StationArrDepTime implements StationArrDepTime { |
|
const factory _StationArrDepTime( |
|
{required final DateTime scheduleTime, |
|
final StationArrDepTimeStatus? status}) = _$_StationArrDepTime; |
|
|
|
factory _StationArrDepTime.fromJson(Map<String, dynamic> json) = |
|
_$_StationArrDepTime.fromJson; |
|
|
|
@override |
|
DateTime get scheduleTime; |
|
@override |
|
StationArrDepTimeStatus? get status; |
|
@override |
|
@JsonKey(ignore: true) |
|
_$$_StationArrDepTimeCopyWith<_$_StationArrDepTime> get copyWith => |
|
throw _privateConstructorUsedError; |
|
} |
|
|
|
StationArrDepTimeStatus _$StationArrDepTimeStatusFromJson( |
|
Map<String, dynamic> json) { |
|
return _StationArrDepTimeStatus.fromJson(json); |
|
} |
|
|
|
/// @nodoc |
|
mixin _$StationArrDepTimeStatus { |
|
int get delay => throw _privateConstructorUsedError; |
|
bool get real => throw _privateConstructorUsedError; |
|
bool get cancelled => throw _privateConstructorUsedError; |
|
|
|
Map<String, dynamic> toJson() => throw _privateConstructorUsedError; |
|
@JsonKey(ignore: true) |
|
$StationArrDepTimeStatusCopyWith<StationArrDepTimeStatus> get copyWith => |
|
throw _privateConstructorUsedError; |
|
} |
|
|
|
/// @nodoc |
|
abstract class $StationArrDepTimeStatusCopyWith<$Res> { |
|
factory $StationArrDepTimeStatusCopyWith(StationArrDepTimeStatus value, |
|
$Res Function(StationArrDepTimeStatus) then) = |
|
_$StationArrDepTimeStatusCopyWithImpl<$Res, StationArrDepTimeStatus>; |
|
@useResult |
|
$Res call({int delay, bool real, bool cancelled}); |
|
} |
|
|
|
/// @nodoc |
|
class _$StationArrDepTimeStatusCopyWithImpl<$Res, |
|
$Val extends StationArrDepTimeStatus> |
|
implements $StationArrDepTimeStatusCopyWith<$Res> { |
|
_$StationArrDepTimeStatusCopyWithImpl(this._value, this._then); |
|
|
|
// ignore: unused_field |
|
final $Val _value; |
|
// ignore: unused_field |
|
final $Res Function($Val) _then; |
|
|
|
@pragma('vm:prefer-inline') |
|
@override |
|
$Res call({ |
|
Object? delay = null, |
|
Object? real = null, |
|
Object? cancelled = null, |
|
}) { |
|
return _then(_value.copyWith( |
|
delay: null == delay |
|
? _value.delay |
|
: delay // ignore: cast_nullable_to_non_nullable |
|
as int, |
|
real: null == real |
|
? _value.real |
|
: real // ignore: cast_nullable_to_non_nullable |
|
as bool, |
|
cancelled: null == cancelled |
|
? _value.cancelled |
|
: cancelled // ignore: cast_nullable_to_non_nullable |
|
as bool, |
|
) as $Val); |
|
} |
|
} |
|
|
|
/// @nodoc |
|
abstract class _$$_StationArrDepTimeStatusCopyWith<$Res> |
|
implements $StationArrDepTimeStatusCopyWith<$Res> { |
|
factory _$$_StationArrDepTimeStatusCopyWith(_$_StationArrDepTimeStatus value, |
|
$Res Function(_$_StationArrDepTimeStatus) then) = |
|
__$$_StationArrDepTimeStatusCopyWithImpl<$Res>; |
|
@override |
|
@useResult |
|
$Res call({int delay, bool real, bool cancelled}); |
|
} |
|
|
|
/// @nodoc |
|
class __$$_StationArrDepTimeStatusCopyWithImpl<$Res> |
|
extends _$StationArrDepTimeStatusCopyWithImpl<$Res, |
|
_$_StationArrDepTimeStatus> |
|
implements _$$_StationArrDepTimeStatusCopyWith<$Res> { |
|
__$$_StationArrDepTimeStatusCopyWithImpl(_$_StationArrDepTimeStatus _value, |
|
$Res Function(_$_StationArrDepTimeStatus) _then) |
|
: super(_value, _then); |
|
|
|
@pragma('vm:prefer-inline') |
|
@override |
|
$Res call({ |
|
Object? delay = null, |
|
Object? real = null, |
|
Object? cancelled = null, |
|
}) { |
|
return _then(_$_StationArrDepTimeStatus( |
|
delay: null == delay |
|
? _value.delay |
|
: delay // ignore: cast_nullable_to_non_nullable |
|
as int, |
|
real: null == real |
|
? _value.real |
|
: real // ignore: cast_nullable_to_non_nullable |
|
as bool, |
|
cancelled: null == cancelled |
|
? _value.cancelled |
|
: cancelled // ignore: cast_nullable_to_non_nullable |
|
as bool, |
|
)); |
|
} |
|
} |
|
|
|
/// @nodoc |
|
@JsonSerializable() |
|
class _$_StationArrDepTimeStatus implements _StationArrDepTimeStatus { |
|
const _$_StationArrDepTimeStatus( |
|
{required this.delay, required this.real, required this.cancelled}); |
|
|
|
factory _$_StationArrDepTimeStatus.fromJson(Map<String, dynamic> json) => |
|
_$$_StationArrDepTimeStatusFromJson(json); |
|
|
|
@override |
|
final int delay; |
|
@override |
|
final bool real; |
|
@override |
|
final bool cancelled; |
|
|
|
@override |
|
String toString() { |
|
return 'StationArrDepTimeStatus(delay: $delay, real: $real, cancelled: $cancelled)'; |
|
} |
|
|
|
@override |
|
bool operator ==(dynamic other) { |
|
return identical(this, other) || |
|
(other.runtimeType == runtimeType && |
|
other is _$_StationArrDepTimeStatus && |
|
(identical(other.delay, delay) || other.delay == delay) && |
|
(identical(other.real, real) || other.real == real) && |
|
(identical(other.cancelled, cancelled) || |
|
other.cancelled == cancelled)); |
|
} |
|
|
|
@JsonKey(ignore: true) |
|
@override |
|
int get hashCode => Object.hash(runtimeType, delay, real, cancelled); |
|
|
|
@JsonKey(ignore: true) |
|
@override |
|
@pragma('vm:prefer-inline') |
|
_$$_StationArrDepTimeStatusCopyWith<_$_StationArrDepTimeStatus> |
|
get copyWith => |
|
__$$_StationArrDepTimeStatusCopyWithImpl<_$_StationArrDepTimeStatus>( |
|
this, _$identity); |
|
|
|
@override |
|
Map<String, dynamic> toJson() { |
|
return _$$_StationArrDepTimeStatusToJson( |
|
this, |
|
); |
|
} |
|
} |
|
|
|
abstract class _StationArrDepTimeStatus implements StationArrDepTimeStatus { |
|
const factory _StationArrDepTimeStatus( |
|
{required final int delay, |
|
required final bool real, |
|
required final bool cancelled}) = _$_StationArrDepTimeStatus; |
|
|
|
factory _StationArrDepTimeStatus.fromJson(Map<String, dynamic> json) = |
|
_$_StationArrDepTimeStatus.fromJson; |
|
|
|
@override |
|
int get delay; |
|
@override |
|
bool get real; |
|
@override |
|
bool get cancelled; |
|
@override |
|
@JsonKey(ignore: true) |
|
_$$_StationArrDepTimeStatusCopyWith<_$_StationArrDepTimeStatus> |
|
get copyWith => throw _privateConstructorUsedError; |
|
} |
|
|
|
TrainDataStatus _$TrainDataStatusFromJson(Map<String, dynamic> json) { |
|
return _TrainDataStatus.fromJson(json); |
|
} |
|
|
|
/// @nodoc |
|
mixin _$TrainDataStatus { |
|
int get delay => throw _privateConstructorUsedError; |
|
String get station => throw _privateConstructorUsedError; |
|
TrainDataStatusState get state => throw _privateConstructorUsedError; |
|
|
|
Map<String, dynamic> toJson() => throw _privateConstructorUsedError; |
|
@JsonKey(ignore: true) |
|
$TrainDataStatusCopyWith<TrainDataStatus> get copyWith => |
|
throw _privateConstructorUsedError; |
|
} |
|
|
|
/// @nodoc |
|
abstract class $TrainDataStatusCopyWith<$Res> { |
|
factory $TrainDataStatusCopyWith( |
|
TrainDataStatus value, $Res Function(TrainDataStatus) then) = |
|
_$TrainDataStatusCopyWithImpl<$Res, TrainDataStatus>; |
|
@useResult |
|
$Res call({int delay, String station, TrainDataStatusState state}); |
|
} |
|
|
|
/// @nodoc |
|
class _$TrainDataStatusCopyWithImpl<$Res, $Val extends TrainDataStatus> |
|
implements $TrainDataStatusCopyWith<$Res> { |
|
_$TrainDataStatusCopyWithImpl(this._value, this._then); |
|
|
|
// ignore: unused_field |
|
final $Val _value; |
|
// ignore: unused_field |
|
final $Res Function($Val) _then; |
|
|
|
@pragma('vm:prefer-inline') |
|
@override |
|
$Res call({ |
|
Object? delay = null, |
|
Object? station = null, |
|
Object? state = null, |
|
}) { |
|
return _then(_value.copyWith( |
|
delay: null == delay |
|
? _value.delay |
|
: delay // ignore: cast_nullable_to_non_nullable |
|
as int, |
|
station: null == station |
|
? _value.station |
|
: station // ignore: cast_nullable_to_non_nullable |
|
as String, |
|
state: null == state |
|
? _value.state |
|
: state // ignore: cast_nullable_to_non_nullable |
|
as TrainDataStatusState, |
|
) as $Val); |
|
} |
|
} |
|
|
|
/// @nodoc |
|
abstract class _$$_TrainDataStatusCopyWith<$Res> |
|
implements $TrainDataStatusCopyWith<$Res> { |
|
factory _$$_TrainDataStatusCopyWith( |
|
_$_TrainDataStatus value, $Res Function(_$_TrainDataStatus) then) = |
|
__$$_TrainDataStatusCopyWithImpl<$Res>; |
|
@override |
|
@useResult |
|
$Res call({int delay, String station, TrainDataStatusState state}); |
|
} |
|
|
|
/// @nodoc |
|
class __$$_TrainDataStatusCopyWithImpl<$Res> |
|
extends _$TrainDataStatusCopyWithImpl<$Res, _$_TrainDataStatus> |
|
implements _$$_TrainDataStatusCopyWith<$Res> { |
|
__$$_TrainDataStatusCopyWithImpl( |
|
_$_TrainDataStatus _value, $Res Function(_$_TrainDataStatus) _then) |
|
: super(_value, _then); |
|
|
|
@pragma('vm:prefer-inline') |
|
@override |
|
$Res call({ |
|
Object? delay = null, |
|
Object? station = null, |
|
Object? state = null, |
|
}) { |
|
return _then(_$_TrainDataStatus( |
|
delay: null == delay |
|
? _value.delay |
|
: delay // ignore: cast_nullable_to_non_nullable |
|
as int, |
|
station: null == station |
|
? _value.station |
|
: station // ignore: cast_nullable_to_non_nullable |
|
as String, |
|
state: null == state |
|
? _value.state |
|
: state // ignore: cast_nullable_to_non_nullable |
|
as TrainDataStatusState, |
|
)); |
|
} |
|
} |
|
|
|
/// @nodoc |
|
@JsonSerializable() |
|
class _$_TrainDataStatus extends _TrainDataStatus { |
|
const _$_TrainDataStatus( |
|
{required this.delay, required this.station, required this.state}) |
|
: super._(); |
|
|
|
factory _$_TrainDataStatus.fromJson(Map<String, dynamic> json) => |
|
_$$_TrainDataStatusFromJson(json); |
|
|
|
@override |
|
final int delay; |
|
@override |
|
final String station; |
|
@override |
|
final TrainDataStatusState state; |
|
|
|
@override |
|
bool operator ==(dynamic other) { |
|
return identical(this, other) || |
|
(other.runtimeType == runtimeType && |
|
other is _$_TrainDataStatus && |
|
(identical(other.delay, delay) || other.delay == delay) && |
|
(identical(other.station, station) || other.station == station) && |
|
(identical(other.state, state) || other.state == state)); |
|
} |
|
|
|
@JsonKey(ignore: true) |
|
@override |
|
int get hashCode => Object.hash(runtimeType, delay, station, state); |
|
|
|
@JsonKey(ignore: true) |
|
@override |
|
@pragma('vm:prefer-inline') |
|
_$$_TrainDataStatusCopyWith<_$_TrainDataStatus> get copyWith => |
|
__$$_TrainDataStatusCopyWithImpl<_$_TrainDataStatus>(this, _$identity); |
|
|
|
@override |
|
Map<String, dynamic> toJson() { |
|
return _$$_TrainDataStatusToJson( |
|
this, |
|
); |
|
} |
|
} |
|
|
|
abstract class _TrainDataStatus extends TrainDataStatus { |
|
const factory _TrainDataStatus( |
|
{required final int delay, |
|
required final String station, |
|
required final TrainDataStatusState state}) = _$_TrainDataStatus; |
|
const _TrainDataStatus._() : super._(); |
|
|
|
factory _TrainDataStatus.fromJson(Map<String, dynamic> json) = |
|
_$_TrainDataStatus.fromJson; |
|
|
|
@override |
|
int get delay; |
|
@override |
|
String get station; |
|
@override |
|
TrainDataStatusState get state; |
|
@override |
|
@JsonKey(ignore: true) |
|
_$$_TrainDataStatusCopyWith<_$_TrainDataStatus> get copyWith => |
|
throw _privateConstructorUsedError; |
|
} |
|
|
|
TrainDataNoteTrainNumberChange _$TrainDataNoteTrainNumberChangeFromJson( |
|
Map<String, dynamic> json) { |
|
return _TrainDataNoteTrainNumberChange.fromJson(json); |
|
} |
|
|
|
/// @nodoc |
|
mixin _$TrainDataNoteTrainNumberChange { |
|
// base |
|
String get kind => throw _privateConstructorUsedError; // impl |
|
String get rank => throw _privateConstructorUsedError; |
|
String get number => throw _privateConstructorUsedError; |
|
|
|
Map<String, dynamic> toJson() => throw _privateConstructorUsedError; |
|
@JsonKey(ignore: true) |
|
$TrainDataNoteTrainNumberChangeCopyWith<TrainDataNoteTrainNumberChange> |
|
get copyWith => throw _privateConstructorUsedError; |
|
} |
|
|
|
/// @nodoc |
|
abstract class $TrainDataNoteTrainNumberChangeCopyWith<$Res> { |
|
factory $TrainDataNoteTrainNumberChangeCopyWith( |
|
TrainDataNoteTrainNumberChange value, |
|
$Res Function(TrainDataNoteTrainNumberChange) then) = |
|
_$TrainDataNoteTrainNumberChangeCopyWithImpl<$Res, |
|
TrainDataNoteTrainNumberChange>; |
|
@useResult |
|
$Res call({String kind, String rank, String number}); |
|
} |
|
|
|
/// @nodoc |
|
class _$TrainDataNoteTrainNumberChangeCopyWithImpl<$Res, |
|
$Val extends TrainDataNoteTrainNumberChange> |
|
implements $TrainDataNoteTrainNumberChangeCopyWith<$Res> { |
|
_$TrainDataNoteTrainNumberChangeCopyWithImpl(this._value, this._then); |
|
|
|
// ignore: unused_field |
|
final $Val _value; |
|
// ignore: unused_field |
|
final $Res Function($Val) _then; |
|
|
|
@pragma('vm:prefer-inline') |
|
@override |
|
$Res call({ |
|
Object? kind = null, |
|
Object? rank = null, |
|
Object? number = null, |
|
}) { |
|
return _then(_value.copyWith( |
|
kind: null == kind |
|
? _value.kind |
|
: kind // ignore: cast_nullable_to_non_nullable |
|
as String, |
|
rank: null == rank |
|
? _value.rank |
|
: rank // ignore: cast_nullable_to_non_nullable |
|
as String, |
|
number: null == number |
|
? _value.number |
|
: number // ignore: cast_nullable_to_non_nullable |
|
as String, |
|
) as $Val); |
|
} |
|
} |
|
|
|
/// @nodoc |
|
abstract class _$$_TrainDataNoteTrainNumberChangeCopyWith<$Res> |
|
implements $TrainDataNoteTrainNumberChangeCopyWith<$Res> { |
|
factory _$$_TrainDataNoteTrainNumberChangeCopyWith( |
|
_$_TrainDataNoteTrainNumberChange value, |
|
$Res Function(_$_TrainDataNoteTrainNumberChange) then) = |
|
__$$_TrainDataNoteTrainNumberChangeCopyWithImpl<$Res>; |
|
@override |
|
@useResult |
|
$Res call({String kind, String rank, String number}); |
|
} |
|
|
|
/// @nodoc |
|
class __$$_TrainDataNoteTrainNumberChangeCopyWithImpl<$Res> |
|
extends _$TrainDataNoteTrainNumberChangeCopyWithImpl<$Res, |
|
_$_TrainDataNoteTrainNumberChange> |
|
implements _$$_TrainDataNoteTrainNumberChangeCopyWith<$Res> { |
|
__$$_TrainDataNoteTrainNumberChangeCopyWithImpl( |
|
_$_TrainDataNoteTrainNumberChange _value, |
|
$Res Function(_$_TrainDataNoteTrainNumberChange) _then) |
|
: super(_value, _then); |
|
|
|
@pragma('vm:prefer-inline') |
|
@override |
|
$Res call({ |
|
Object? kind = null, |
|
Object? rank = null, |
|
Object? number = null, |
|
}) { |
|
return _then(_$_TrainDataNoteTrainNumberChange( |
|
kind: null == kind |
|
? _value.kind |
|
: kind // ignore: cast_nullable_to_non_nullable |
|
as String, |
|
rank: null == rank |
|
? _value.rank |
|
: rank // ignore: cast_nullable_to_non_nullable |
|
as String, |
|
number: null == number |
|
? _value.number |
|
: number // ignore: cast_nullable_to_non_nullable |
|
as String, |
|
)); |
|
} |
|
} |
|
|
|
/// @nodoc |
|
@JsonSerializable() |
|
class _$_TrainDataNoteTrainNumberChange |
|
implements _TrainDataNoteTrainNumberChange { |
|
const _$_TrainDataNoteTrainNumberChange( |
|
{this.kind = "trainNumberChange", |
|
required this.rank, |
|
required this.number}); |
|
|
|
factory _$_TrainDataNoteTrainNumberChange.fromJson( |
|
Map<String, dynamic> json) => |
|
_$$_TrainDataNoteTrainNumberChangeFromJson(json); |
|
|
|
// base |
|
@override |
|
@JsonKey() |
|
final String kind; |
|
// impl |
|
@override |
|
final String rank; |
|
@override |
|
final String number; |
|
|
|
@override |
|
String toString() { |
|
return 'TrainDataNoteTrainNumberChange(kind: $kind, rank: $rank, number: $number)'; |
|
} |
|
|
|
@override |
|
bool operator ==(dynamic other) { |
|
return identical(this, other) || |
|
(other.runtimeType == runtimeType && |
|
other is _$_TrainDataNoteTrainNumberChange && |
|
(identical(other.kind, kind) || other.kind == kind) && |
|
(identical(other.rank, rank) || other.rank == rank) && |
|
(identical(other.number, number) || other.number == number)); |
|
} |
|
|
|
@JsonKey(ignore: true) |
|
@override |
|
int get hashCode => Object.hash(runtimeType, kind, rank, number); |
|
|
|
@JsonKey(ignore: true) |
|
@override |
|
@pragma('vm:prefer-inline') |
|
_$$_TrainDataNoteTrainNumberChangeCopyWith<_$_TrainDataNoteTrainNumberChange> |
|
get copyWith => __$$_TrainDataNoteTrainNumberChangeCopyWithImpl< |
|
_$_TrainDataNoteTrainNumberChange>(this, _$identity); |
|
|
|
@override |
|
Map<String, dynamic> toJson() { |
|
return _$$_TrainDataNoteTrainNumberChangeToJson( |
|
this, |
|
); |
|
} |
|
} |
|
|
|
abstract class _TrainDataNoteTrainNumberChange |
|
implements TrainDataNoteTrainNumberChange, TrainDataNote { |
|
const factory _TrainDataNoteTrainNumberChange( |
|
{final String kind, |
|
required final String rank, |
|
required final String number}) = _$_TrainDataNoteTrainNumberChange; |
|
|
|
factory _TrainDataNoteTrainNumberChange.fromJson(Map<String, dynamic> json) = |
|
_$_TrainDataNoteTrainNumberChange.fromJson; |
|
|
|
@override // base |
|
String get kind; |
|
@override // impl |
|
String get rank; |
|
@override |
|
String get number; |
|
@override |
|
@JsonKey(ignore: true) |
|
_$$_TrainDataNoteTrainNumberChangeCopyWith<_$_TrainDataNoteTrainNumberChange> |
|
get copyWith => throw _privateConstructorUsedError; |
|
} |
|
|
|
TrainDataNoteDepartsAs _$TrainDataNoteDepartsAsFromJson( |
|
Map<String, dynamic> json) { |
|
return _TrainDataNoteDepartsAs.fromJson(json); |
|
} |
|
|
|
/// @nodoc |
|
mixin _$TrainDataNoteDepartsAs { |
|
// base |
|
String get kind => throw _privateConstructorUsedError; // impl |
|
String get rank => throw _privateConstructorUsedError; |
|
String get number => throw _privateConstructorUsedError; |
|
DateTime get departureDate => throw _privateConstructorUsedError; |
|
|
|
Map<String, dynamic> toJson() => throw _privateConstructorUsedError; |
|
@JsonKey(ignore: true) |
|
$TrainDataNoteDepartsAsCopyWith<TrainDataNoteDepartsAs> get copyWith => |
|
throw _privateConstructorUsedError; |
|
} |
|
|
|
/// @nodoc |
|
abstract class $TrainDataNoteDepartsAsCopyWith<$Res> { |
|
factory $TrainDataNoteDepartsAsCopyWith(TrainDataNoteDepartsAs value, |
|
$Res Function(TrainDataNoteDepartsAs) then) = |
|
_$TrainDataNoteDepartsAsCopyWithImpl<$Res, TrainDataNoteDepartsAs>; |
|
@useResult |
|
$Res call({String kind, String rank, String number, DateTime departureDate}); |
|
} |
|
|
|
/// @nodoc |
|
class _$TrainDataNoteDepartsAsCopyWithImpl<$Res, |
|
$Val extends TrainDataNoteDepartsAs> |
|
implements $TrainDataNoteDepartsAsCopyWith<$Res> { |
|
_$TrainDataNoteDepartsAsCopyWithImpl(this._value, this._then); |
|
|
|
// ignore: unused_field |
|
final $Val _value; |
|
// ignore: unused_field |
|
final $Res Function($Val) _then; |
|
|
|
@pragma('vm:prefer-inline') |
|
@override |
|
$Res call({ |
|
Object? kind = null, |
|
Object? rank = null, |
|
Object? number = null, |
|
Object? departureDate = null, |
|
}) { |
|
return _then(_value.copyWith( |
|
kind: null == kind |
|
? _value.kind |
|
: kind // ignore: cast_nullable_to_non_nullable |
|
as String, |
|
rank: null == rank |
|
? _value.rank |
|
: rank // ignore: cast_nullable_to_non_nullable |
|
as String, |
|
number: null == number |
|
? _value.number |
|
: number // ignore: cast_nullable_to_non_nullable |
|
as String, |
|
departureDate: null == departureDate |
|
? _value.departureDate |
|
: departureDate // ignore: cast_nullable_to_non_nullable |
|
as DateTime, |
|
) as $Val); |
|
} |
|
} |
|
|
|
/// @nodoc |
|
abstract class _$$_TrainDataNoteDepartsAsCopyWith<$Res> |
|
implements $TrainDataNoteDepartsAsCopyWith<$Res> { |
|
factory _$$_TrainDataNoteDepartsAsCopyWith(_$_TrainDataNoteDepartsAs value, |
|
$Res Function(_$_TrainDataNoteDepartsAs) then) = |
|
__$$_TrainDataNoteDepartsAsCopyWithImpl<$Res>; |
|
@override |
|
@useResult |
|
$Res call({String kind, String rank, String number, DateTime departureDate}); |
|
} |
|
|
|
/// @nodoc |
|
class __$$_TrainDataNoteDepartsAsCopyWithImpl<$Res> |
|
extends _$TrainDataNoteDepartsAsCopyWithImpl<$Res, |
|
_$_TrainDataNoteDepartsAs> |
|
implements _$$_TrainDataNoteDepartsAsCopyWith<$Res> { |
|
__$$_TrainDataNoteDepartsAsCopyWithImpl(_$_TrainDataNoteDepartsAs _value, |
|
$Res Function(_$_TrainDataNoteDepartsAs) _then) |
|
: super(_value, _then); |
|
|
|
@pragma('vm:prefer-inline') |
|
@override |
|
$Res call({ |
|
Object? kind = null, |
|
Object? rank = null, |
|
Object? number = null, |
|
Object? departureDate = null, |
|
}) { |
|
return _then(_$_TrainDataNoteDepartsAs( |
|
kind: null == kind |
|
? _value.kind |
|
: kind // ignore: cast_nullable_to_non_nullable |
|
as String, |
|
rank: null == rank |
|
? _value.rank |
|
: rank // ignore: cast_nullable_to_non_nullable |
|
as String, |
|
number: null == number |
|
? _value.number |
|
: number // ignore: cast_nullable_to_non_nullable |
|
as String, |
|
departureDate: null == departureDate |
|
? _value.departureDate |
|
: departureDate // ignore: cast_nullable_to_non_nullable |
|
as DateTime, |
|
)); |
|
} |
|
} |
|
|
|
/// @nodoc |
|
@JsonSerializable() |
|
class _$_TrainDataNoteDepartsAs implements _TrainDataNoteDepartsAs { |
|
const _$_TrainDataNoteDepartsAs( |
|
{this.kind = "departsAs", |
|
required this.rank, |
|
required this.number, |
|
required this.departureDate}); |
|
|
|
factory _$_TrainDataNoteDepartsAs.fromJson(Map<String, dynamic> json) => |
|
_$$_TrainDataNoteDepartsAsFromJson(json); |
|
|
|
// base |
|
@override |
|
@JsonKey() |
|
final String kind; |
|
// impl |
|
@override |
|
final String rank; |
|
@override |
|
final String number; |
|
@override |
|
final DateTime departureDate; |
|
|
|
@override |
|
String toString() { |
|
return 'TrainDataNoteDepartsAs(kind: $kind, rank: $rank, number: $number, departureDate: $departureDate)'; |
|
} |
|
|
|
@override |
|
bool operator ==(dynamic other) { |
|
return identical(this, other) || |
|
(other.runtimeType == runtimeType && |
|
other is _$_TrainDataNoteDepartsAs && |
|
(identical(other.kind, kind) || other.kind == kind) && |
|
(identical(other.rank, rank) || other.rank == rank) && |
|
(identical(other.number, number) || other.number == number) && |
|
(identical(other.departureDate, departureDate) || |
|
other.departureDate == departureDate)); |
|
} |
|
|
|
@JsonKey(ignore: true) |
|
@override |
|
int get hashCode => |
|
Object.hash(runtimeType, kind, rank, number, departureDate); |
|
|
|
@JsonKey(ignore: true) |
|
@override |
|
@pragma('vm:prefer-inline') |
|
_$$_TrainDataNoteDepartsAsCopyWith<_$_TrainDataNoteDepartsAs> get copyWith => |
|
__$$_TrainDataNoteDepartsAsCopyWithImpl<_$_TrainDataNoteDepartsAs>( |
|
this, _$identity); |
|
|
|
@override |
|
Map<String, dynamic> toJson() { |
|
return _$$_TrainDataNoteDepartsAsToJson( |
|
this, |
|
); |
|
} |
|
} |
|
|
|
abstract class _TrainDataNoteDepartsAs |
|
implements TrainDataNoteDepartsAs, TrainDataNote { |
|
const factory _TrainDataNoteDepartsAs( |
|
{final String kind, |
|
required final String rank, |
|
required final String number, |
|
required final DateTime departureDate}) = _$_TrainDataNoteDepartsAs; |
|
|
|
factory _TrainDataNoteDepartsAs.fromJson(Map<String, dynamic> json) = |
|
_$_TrainDataNoteDepartsAs.fromJson; |
|
|
|
@override // base |
|
String get kind; |
|
@override // impl |
|
String get rank; |
|
@override |
|
String get number; |
|
@override |
|
DateTime get departureDate; |
|
@override |
|
@JsonKey(ignore: true) |
|
_$$_TrainDataNoteDepartsAsCopyWith<_$_TrainDataNoteDepartsAs> get copyWith => |
|
throw _privateConstructorUsedError; |
|
} |
|
|
|
TrainDataNoteDetachingWagons _$TrainDataNoteDetachingWagonsFromJson( |
|
Map<String, dynamic> json) { |
|
return _TrainDataNoteDetachingWagons.fromJson(json); |
|
} |
|
|
|
/// @nodoc |
|
mixin _$TrainDataNoteDetachingWagons { |
|
// base |
|
String get kind => throw _privateConstructorUsedError; // impl |
|
String get station => throw _privateConstructorUsedError; |
|
|
|
Map<String, dynamic> toJson() => throw _privateConstructorUsedError; |
|
@JsonKey(ignore: true) |
|
$TrainDataNoteDetachingWagonsCopyWith<TrainDataNoteDetachingWagons> |
|
get copyWith => throw _privateConstructorUsedError; |
|
} |
|
|
|
/// @nodoc |
|
abstract class $TrainDataNoteDetachingWagonsCopyWith<$Res> { |
|
factory $TrainDataNoteDetachingWagonsCopyWith( |
|
TrainDataNoteDetachingWagons value, |
|
$Res Function(TrainDataNoteDetachingWagons) then) = |
|
_$TrainDataNoteDetachingWagonsCopyWithImpl<$Res, |
|
TrainDataNoteDetachingWagons>; |
|
@useResult |
|
$Res call({String kind, String station}); |
|
} |
|
|
|
/// @nodoc |
|
class _$TrainDataNoteDetachingWagonsCopyWithImpl<$Res, |
|
$Val extends TrainDataNoteDetachingWagons> |
|
implements $TrainDataNoteDetachingWagonsCopyWith<$Res> { |
|
_$TrainDataNoteDetachingWagonsCopyWithImpl(this._value, this._then); |
|
|
|
// ignore: unused_field |
|
final $Val _value; |
|
// ignore: unused_field |
|
final $Res Function($Val) _then; |
|
|
|
@pragma('vm:prefer-inline') |
|
@override |
|
$Res call({ |
|
Object? kind = null, |
|
Object? station = null, |
|
}) { |
|
return _then(_value.copyWith( |
|
kind: null == kind |
|
? _value.kind |
|
: kind // ignore: cast_nullable_to_non_nullable |
|
as String, |
|
station: null == station |
|
? _value.station |
|
: station // ignore: cast_nullable_to_non_nullable |
|
as String, |
|
) as $Val); |
|
} |
|
} |
|
|
|
/// @nodoc |
|
abstract class _$$_TrainDataNoteDetachingWagonsCopyWith<$Res> |
|
implements $TrainDataNoteDetachingWagonsCopyWith<$Res> { |
|
factory _$$_TrainDataNoteDetachingWagonsCopyWith( |
|
_$_TrainDataNoteDetachingWagons value, |
|
$Res Function(_$_TrainDataNoteDetachingWagons) then) = |
|
__$$_TrainDataNoteDetachingWagonsCopyWithImpl<$Res>; |
|
@override |
|
@useResult |
|
$Res call({String kind, String station}); |
|
} |
|
|
|
/// @nodoc |
|
class __$$_TrainDataNoteDetachingWagonsCopyWithImpl<$Res> |
|
extends _$TrainDataNoteDetachingWagonsCopyWithImpl<$Res, |
|
_$_TrainDataNoteDetachingWagons> |
|
implements _$$_TrainDataNoteDetachingWagonsCopyWith<$Res> { |
|
__$$_TrainDataNoteDetachingWagonsCopyWithImpl( |
|
_$_TrainDataNoteDetachingWagons _value, |
|
$Res Function(_$_TrainDataNoteDetachingWagons) _then) |
|
: super(_value, _then); |
|
|
|
@pragma('vm:prefer-inline') |
|
@override |
|
$Res call({ |
|
Object? kind = null, |
|
Object? station = null, |
|
}) { |
|
return _then(_$_TrainDataNoteDetachingWagons( |
|
kind: null == kind |
|
? _value.kind |
|
: kind // ignore: cast_nullable_to_non_nullable |
|
as String, |
|
station: null == station |
|
? _value.station |
|
: station // ignore: cast_nullable_to_non_nullable |
|
as String, |
|
)); |
|
} |
|
} |
|
|
|
/// @nodoc |
|
@JsonSerializable() |
|
class _$_TrainDataNoteDetachingWagons implements _TrainDataNoteDetachingWagons { |
|
const _$_TrainDataNoteDetachingWagons( |
|
{this.kind = "detachingWagons", required this.station}); |
|
|
|
factory _$_TrainDataNoteDetachingWagons.fromJson(Map<String, dynamic> json) => |
|
_$$_TrainDataNoteDetachingWagonsFromJson(json); |
|
|
|
// base |
|
@override |
|
@JsonKey() |
|
final String kind; |
|
// impl |
|
@override |
|
final String station; |
|
|
|
@override |
|
String toString() { |
|
return 'TrainDataNoteDetachingWagons(kind: $kind, station: $station)'; |
|
} |
|
|
|
@override |
|
bool operator ==(dynamic other) { |
|
return identical(this, other) || |
|
(other.runtimeType == runtimeType && |
|
other is _$_TrainDataNoteDetachingWagons && |
|
(identical(other.kind, kind) || other.kind == kind) && |
|
(identical(other.station, station) || other.station == station)); |
|
} |
|
|
|
@JsonKey(ignore: true) |
|
@override |
|
int get hashCode => Object.hash(runtimeType, kind, station); |
|
|
|
@JsonKey(ignore: true) |
|
@override |
|
@pragma('vm:prefer-inline') |
|
_$$_TrainDataNoteDetachingWagonsCopyWith<_$_TrainDataNoteDetachingWagons> |
|
get copyWith => __$$_TrainDataNoteDetachingWagonsCopyWithImpl< |
|
_$_TrainDataNoteDetachingWagons>(this, _$identity); |
|
|
|
@override |
|
Map<String, dynamic> toJson() { |
|
return _$$_TrainDataNoteDetachingWagonsToJson( |
|
this, |
|
); |
|
} |
|
} |
|
|
|
abstract class _TrainDataNoteDetachingWagons |
|
implements TrainDataNoteDetachingWagons, TrainDataNote { |
|
const factory _TrainDataNoteDetachingWagons( |
|
{final String kind, |
|
required final String station}) = _$_TrainDataNoteDetachingWagons; |
|
|
|
factory _TrainDataNoteDetachingWagons.fromJson(Map<String, dynamic> json) = |
|
_$_TrainDataNoteDetachingWagons.fromJson; |
|
|
|
@override // base |
|
String get kind; |
|
@override // impl |
|
String get station; |
|
@override |
|
@JsonKey(ignore: true) |
|
_$$_TrainDataNoteDetachingWagonsCopyWith<_$_TrainDataNoteDetachingWagons> |
|
get copyWith => throw _privateConstructorUsedError; |
|
} |
|
|
|
TrainDataNoteReceivingWagons _$TrainDataNoteReceivingWagonsFromJson( |
|
Map<String, dynamic> json) { |
|
return _TrainDataNoteReceivingWagons.fromJson(json); |
|
} |
|
|
|
/// @nodoc |
|
mixin _$TrainDataNoteReceivingWagons { |
|
// base |
|
String get kind => throw _privateConstructorUsedError; // impl |
|
String get station => throw _privateConstructorUsedError; |
|
|
|
Map<String, dynamic> toJson() => throw _privateConstructorUsedError; |
|
@JsonKey(ignore: true) |
|
$TrainDataNoteReceivingWagonsCopyWith<TrainDataNoteReceivingWagons> |
|
get copyWith => throw _privateConstructorUsedError; |
|
} |
|
|
|
/// @nodoc |
|
abstract class $TrainDataNoteReceivingWagonsCopyWith<$Res> { |
|
factory $TrainDataNoteReceivingWagonsCopyWith( |
|
TrainDataNoteReceivingWagons value, |
|
$Res Function(TrainDataNoteReceivingWagons) then) = |
|
_$TrainDataNoteReceivingWagonsCopyWithImpl<$Res, |
|
TrainDataNoteReceivingWagons>; |
|
@useResult |
|
$Res call({String kind, String station}); |
|
} |
|
|
|
/// @nodoc |
|
class _$TrainDataNoteReceivingWagonsCopyWithImpl<$Res, |
|
$Val extends TrainDataNoteReceivingWagons> |
|
implements $TrainDataNoteReceivingWagonsCopyWith<$Res> { |
|
_$TrainDataNoteReceivingWagonsCopyWithImpl(this._value, this._then); |
|
|
|
// ignore: unused_field |
|
final $Val _value; |
|
// ignore: unused_field |
|
final $Res Function($Val) _then; |
|
|
|
@pragma('vm:prefer-inline') |
|
@override |
|
$Res call({ |
|
Object? kind = null, |
|
Object? station = null, |
|
}) { |
|
return _then(_value.copyWith( |
|
kind: null == kind |
|
? _value.kind |
|
: kind // ignore: cast_nullable_to_non_nullable |
|
as String, |
|
station: null == station |
|
? _value.station |
|
: station // ignore: cast_nullable_to_non_nullable |
|
as String, |
|
) as $Val); |
|
} |
|
} |
|
|
|
/// @nodoc |
|
abstract class _$$_TrainDataNoteReceivingWagonsCopyWith<$Res> |
|
implements $TrainDataNoteReceivingWagonsCopyWith<$Res> { |
|
factory _$$_TrainDataNoteReceivingWagonsCopyWith( |
|
_$_TrainDataNoteReceivingWagons value, |
|
$Res Function(_$_TrainDataNoteReceivingWagons) then) = |
|
__$$_TrainDataNoteReceivingWagonsCopyWithImpl<$Res>; |
|
@override |
|
@useResult |
|
$Res call({String kind, String station}); |
|
} |
|
|
|
/// @nodoc |
|
class __$$_TrainDataNoteReceivingWagonsCopyWithImpl<$Res> |
|
extends _$TrainDataNoteReceivingWagonsCopyWithImpl<$Res, |
|
_$_TrainDataNoteReceivingWagons> |
|
implements _$$_TrainDataNoteReceivingWagonsCopyWith<$Res> { |
|
__$$_TrainDataNoteReceivingWagonsCopyWithImpl( |
|
_$_TrainDataNoteReceivingWagons _value, |
|
$Res Function(_$_TrainDataNoteReceivingWagons) _then) |
|
: super(_value, _then); |
|
|
|
@pragma('vm:prefer-inline') |
|
@override |
|
$Res call({ |
|
Object? kind = null, |
|
Object? station = null, |
|
}) { |
|
return _then(_$_TrainDataNoteReceivingWagons( |
|
kind: null == kind |
|
? _value.kind |
|
: kind // ignore: cast_nullable_to_non_nullable |
|
as String, |
|
station: null == station |
|
? _value.station |
|
: station // ignore: cast_nullable_to_non_nullable |
|
as String, |
|
)); |
|
} |
|
} |
|
|
|
/// @nodoc |
|
@JsonSerializable() |
|
class _$_TrainDataNoteReceivingWagons implements _TrainDataNoteReceivingWagons { |
|
const _$_TrainDataNoteReceivingWagons( |
|
{this.kind = "receivingWagons", required this.station}); |
|
|
|
factory _$_TrainDataNoteReceivingWagons.fromJson(Map<String, dynamic> json) => |
|
_$$_TrainDataNoteReceivingWagonsFromJson(json); |
|
|
|
// base |
|
@override |
|
@JsonKey() |
|
final String kind; |
|
// impl |
|
@override |
|
final String station; |
|
|
|
@override |
|
String toString() { |
|
return 'TrainDataNoteReceivingWagons(kind: $kind, station: $station)'; |
|
} |
|
|
|
@override |
|
bool operator ==(dynamic other) { |
|
return identical(this, other) || |
|
(other.runtimeType == runtimeType && |
|
other is _$_TrainDataNoteReceivingWagons && |
|
(identical(other.kind, kind) || other.kind == kind) && |
|
(identical(other.station, station) || other.station == station)); |
|
} |
|
|
|
@JsonKey(ignore: true) |
|
@override |
|
int get hashCode => Object.hash(runtimeType, kind, station); |
|
|
|
@JsonKey(ignore: true) |
|
@override |
|
@pragma('vm:prefer-inline') |
|
_$$_TrainDataNoteReceivingWagonsCopyWith<_$_TrainDataNoteReceivingWagons> |
|
get copyWith => __$$_TrainDataNoteReceivingWagonsCopyWithImpl< |
|
_$_TrainDataNoteReceivingWagons>(this, _$identity); |
|
|
|
@override |
|
Map<String, dynamic> toJson() { |
|
return _$$_TrainDataNoteReceivingWagonsToJson( |
|
this, |
|
); |
|
} |
|
} |
|
|
|
abstract class _TrainDataNoteReceivingWagons |
|
implements TrainDataNoteReceivingWagons, TrainDataNote { |
|
const factory _TrainDataNoteReceivingWagons( |
|
{final String kind, |
|
required final String station}) = _$_TrainDataNoteReceivingWagons; |
|
|
|
factory _TrainDataNoteReceivingWagons.fromJson(Map<String, dynamic> json) = |
|
_$_TrainDataNoteReceivingWagons.fromJson; |
|
|
|
@override // base |
|
String get kind; |
|
@override // impl |
|
String get station; |
|
@override |
|
@JsonKey(ignore: true) |
|
_$$_TrainDataNoteReceivingWagonsCopyWith<_$_TrainDataNoteReceivingWagons> |
|
get copyWith => throw _privateConstructorUsedError; |
|
} |
|
|
|
TrainDataNoteUnknown _$TrainDataNoteUnknownFromJson(Map<String, dynamic> json) { |
|
return _TrainDataNoteUnknown.fromJson(json); |
|
} |
|
|
|
/// @nodoc |
|
mixin _$TrainDataNoteUnknown { |
|
// base |
|
String get kind => throw _privateConstructorUsedError; // impl |
|
Map<String, dynamic> get extra => throw _privateConstructorUsedError; |
|
|
|
Map<String, dynamic> toJson() => throw _privateConstructorUsedError; |
|
@JsonKey(ignore: true) |
|
$TrainDataNoteUnknownCopyWith<TrainDataNoteUnknown> get copyWith => |
|
throw _privateConstructorUsedError; |
|
} |
|
|
|
/// @nodoc |
|
abstract class $TrainDataNoteUnknownCopyWith<$Res> { |
|
factory $TrainDataNoteUnknownCopyWith(TrainDataNoteUnknown value, |
|
$Res Function(TrainDataNoteUnknown) then) = |
|
_$TrainDataNoteUnknownCopyWithImpl<$Res, TrainDataNoteUnknown>; |
|
@useResult |
|
$Res call({String kind, Map<String, dynamic> extra}); |
|
} |
|
|
|
/// @nodoc |
|
class _$TrainDataNoteUnknownCopyWithImpl<$Res, |
|
$Val extends TrainDataNoteUnknown> |
|
implements $TrainDataNoteUnknownCopyWith<$Res> { |
|
_$TrainDataNoteUnknownCopyWithImpl(this._value, this._then); |
|
|
|
// ignore: unused_field |
|
final $Val _value; |
|
// ignore: unused_field |
|
final $Res Function($Val) _then; |
|
|
|
@pragma('vm:prefer-inline') |
|
@override |
|
$Res call({ |
|
Object? kind = null, |
|
Object? extra = null, |
|
}) { |
|
return _then(_value.copyWith( |
|
kind: null == kind |
|
? _value.kind |
|
: kind // ignore: cast_nullable_to_non_nullable |
|
as String, |
|
extra: null == extra |
|
? _value.extra |
|
: extra // ignore: cast_nullable_to_non_nullable |
|
as Map<String, dynamic>, |
|
) as $Val); |
|
} |
|
} |
|
|
|
/// @nodoc |
|
abstract class _$$_TrainDataNoteUnknownCopyWith<$Res> |
|
implements $TrainDataNoteUnknownCopyWith<$Res> { |
|
factory _$$_TrainDataNoteUnknownCopyWith(_$_TrainDataNoteUnknown value, |
|
$Res Function(_$_TrainDataNoteUnknown) then) = |
|
__$$_TrainDataNoteUnknownCopyWithImpl<$Res>; |
|
@override |
|
@useResult |
|
$Res call({String kind, Map<String, dynamic> extra}); |
|
} |
|
|
|
/// @nodoc |
|
class __$$_TrainDataNoteUnknownCopyWithImpl<$Res> |
|
extends _$TrainDataNoteUnknownCopyWithImpl<$Res, _$_TrainDataNoteUnknown> |
|
implements _$$_TrainDataNoteUnknownCopyWith<$Res> { |
|
__$$_TrainDataNoteUnknownCopyWithImpl(_$_TrainDataNoteUnknown _value, |
|
$Res Function(_$_TrainDataNoteUnknown) _then) |
|
: super(_value, _then); |
|
|
|
@pragma('vm:prefer-inline') |
|
@override |
|
$Res call({ |
|
Object? kind = null, |
|
Object? extra = null, |
|
}) { |
|
return _then(_$_TrainDataNoteUnknown( |
|
kind: null == kind |
|
? _value.kind |
|
: kind // ignore: cast_nullable_to_non_nullable |
|
as String, |
|
extra: null == extra |
|
? _value._extra |
|
: extra // ignore: cast_nullable_to_non_nullable |
|
as Map<String, dynamic>, |
|
)); |
|
} |
|
} |
|
|
|
/// @nodoc |
|
@JsonSerializable() |
|
class _$_TrainDataNoteUnknown implements _TrainDataNoteUnknown { |
|
const _$_TrainDataNoteUnknown( |
|
{required this.kind, required final Map<String, dynamic> extra}) |
|
: _extra = extra; |
|
|
|
factory _$_TrainDataNoteUnknown.fromJson(Map<String, dynamic> json) => |
|
_$$_TrainDataNoteUnknownFromJson(json); |
|
|
|
// base |
|
@override |
|
final String kind; |
|
// impl |
|
final Map<String, dynamic> _extra; |
|
// impl |
|
@override |
|
Map<String, dynamic> get extra { |
|
if (_extra is EqualUnmodifiableMapView) return _extra; |
|
// ignore: implicit_dynamic_type |
|
return EqualUnmodifiableMapView(_extra); |
|
} |
|
|
|
@override |
|
String toString() { |
|
return 'TrainDataNoteUnknown(kind: $kind, extra: $extra)'; |
|
} |
|
|
|
@override |
|
bool operator ==(dynamic other) { |
|
return identical(this, other) || |
|
(other.runtimeType == runtimeType && |
|
other is _$_TrainDataNoteUnknown && |
|
(identical(other.kind, kind) || other.kind == kind) && |
|
const DeepCollectionEquality().equals(other._extra, _extra)); |
|
} |
|
|
|
@JsonKey(ignore: true) |
|
@override |
|
int get hashCode => Object.hash( |
|
runtimeType, kind, const DeepCollectionEquality().hash(_extra)); |
|
|
|
@JsonKey(ignore: true) |
|
@override |
|
@pragma('vm:prefer-inline') |
|
_$$_TrainDataNoteUnknownCopyWith<_$_TrainDataNoteUnknown> get copyWith => |
|
__$$_TrainDataNoteUnknownCopyWithImpl<_$_TrainDataNoteUnknown>( |
|
this, _$identity); |
|
|
|
@override |
|
Map<String, dynamic> toJson() { |
|
return _$$_TrainDataNoteUnknownToJson( |
|
this, |
|
); |
|
} |
|
} |
|
|
|
abstract class _TrainDataNoteUnknown |
|
implements TrainDataNoteUnknown, TrainDataNote { |
|
const factory _TrainDataNoteUnknown( |
|
{required final String kind, |
|
required final Map<String, dynamic> extra}) = _$_TrainDataNoteUnknown; |
|
|
|
factory _TrainDataNoteUnknown.fromJson(Map<String, dynamic> json) = |
|
_$_TrainDataNoteUnknown.fromJson; |
|
|
|
@override // base |
|
String get kind; |
|
@override // impl |
|
Map<String, dynamic> get extra; |
|
@override |
|
@JsonKey(ignore: true) |
|
_$$_TrainDataNoteUnknownCopyWith<_$_TrainDataNoteUnknown> get copyWith => |
|
throw _privateConstructorUsedError; |
|
}
|
|
|