2022-10-31 01:25:45 +01:00
// coverage:ignore-file
// GENERATED CODE - DO NOT MODIFY BY HAND
// ignore_for_file: type=lint
2023-07-24 06:55:16 +02:00
// 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
2022-10-31 01:25:45 +01:00
part of ' station_arrdep.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. \n Please check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods ' ) ;
StationArrDep _ $StationArrDepFromJson ( Map < String , dynamic > json ) {
return _StationArrDep . fromJson ( json ) ;
}
/// @nodoc
mixin _ $StationArrDep {
int ? get stoppingTime = > throw _privateConstructorUsedError ;
DateTime get time = > throw _privateConstructorUsedError ;
StationTrain get train = > throw _privateConstructorUsedError ;
StationStatus get status = > throw _privateConstructorUsedError ;
Map < String , dynamic > toJson ( ) = > throw _privateConstructorUsedError ;
@ JsonKey ( ignore: true )
$StationArrDepCopyWith < StationArrDep > get copyWith = >
throw _privateConstructorUsedError ;
}
/// @nodoc
abstract class $StationArrDepCopyWith < $Res > {
factory $StationArrDepCopyWith (
StationArrDep value , $Res Function ( StationArrDep ) then ) =
_ $StationArrDepCopyWithImpl < $Res , StationArrDep > ;
@ useResult
$Res call (
{ int ? stoppingTime ,
DateTime time ,
StationTrain train ,
StationStatus status } ) ;
$StationTrainCopyWith < $Res > get train ;
$StationStatusCopyWith < $Res > get status ;
}
/// @nodoc
class _ $StationArrDepCopyWithImpl < $Res , $Val extends StationArrDep >
implements $StationArrDepCopyWith < $Res > {
_ $StationArrDepCopyWithImpl ( 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 ? stoppingTime = freezed ,
Object ? time = null ,
Object ? train = null ,
Object ? status = null ,
} ) {
return _then ( _value . copyWith (
stoppingTime: freezed = = stoppingTime
? _value . stoppingTime
: stoppingTime // ignore: cast_nullable_to_non_nullable
as int ? ,
time: null = = time
? _value . time
: time // ignore: cast_nullable_to_non_nullable
as DateTime ,
train: null = = train
? _value . train
: train // ignore: cast_nullable_to_non_nullable
as StationTrain ,
status: null = = status
? _value . status
: status // ignore: cast_nullable_to_non_nullable
as StationStatus ,
) as $Val ) ;
}
@ override
@ pragma ( ' vm:prefer-inline ' )
$StationTrainCopyWith < $Res > get train {
return $StationTrainCopyWith < $Res > ( _value . train , ( value ) {
return _then ( _value . copyWith ( train: value ) as $Val ) ;
} ) ;
}
@ override
@ pragma ( ' vm:prefer-inline ' )
$StationStatusCopyWith < $Res > get status {
return $StationStatusCopyWith < $Res > ( _value . status , ( value ) {
return _then ( _value . copyWith ( status: value ) as $Val ) ;
} ) ;
}
}
/// @nodoc
abstract class _ $ $_StationArrDepCopyWith < $Res >
implements $StationArrDepCopyWith < $Res > {
factory _ $ $_StationArrDepCopyWith (
_ $_StationArrDep value , $Res Function ( _ $_StationArrDep ) then ) =
__ $ $_StationArrDepCopyWithImpl < $Res > ;
@ override
@ useResult
$Res call (
{ int ? stoppingTime ,
DateTime time ,
StationTrain train ,
StationStatus status } ) ;
@ override
$StationTrainCopyWith < $Res > get train ;
@ override
$StationStatusCopyWith < $Res > get status ;
}
/// @nodoc
class __ $ $_StationArrDepCopyWithImpl < $Res >
extends _ $StationArrDepCopyWithImpl < $Res , _ $_StationArrDep >
implements _ $ $_StationArrDepCopyWith < $Res > {
__ $ $_StationArrDepCopyWithImpl (
_ $_StationArrDep _value , $Res Function ( _ $_StationArrDep ) _then )
: super ( _value , _then ) ;
@ pragma ( ' vm:prefer-inline ' )
@ override
$Res call ( {
Object ? stoppingTime = freezed ,
Object ? time = null ,
Object ? train = null ,
Object ? status = null ,
} ) {
return _then ( _ $_StationArrDep (
stoppingTime: freezed = = stoppingTime
? _value . stoppingTime
: stoppingTime // ignore: cast_nullable_to_non_nullable
as int ? ,
time: null = = time
? _value . time
: time // ignore: cast_nullable_to_non_nullable
as DateTime ,
train: null = = train
? _value . train
: train // ignore: cast_nullable_to_non_nullable
as StationTrain ,
status: null = = status
? _value . status
: status // ignore: cast_nullable_to_non_nullable
as StationStatus ,
) ) ;
}
}
/// @nodoc
@ JsonSerializable ( )
class _ $_StationArrDep implements _StationArrDep {
const _ $_StationArrDep (
{ required this . stoppingTime ,
required this . time ,
required this . train ,
required this . status } ) ;
factory _ $_StationArrDep . fromJson ( Map < String , dynamic > json ) = >
_ $ $_StationArrDepFromJson ( json ) ;
@ override
final int ? stoppingTime ;
@ override
final DateTime time ;
@ override
final StationTrain train ;
@ override
final StationStatus status ;
@ override
String toString ( ) {
return ' StationArrDep(stoppingTime: $ stoppingTime , time: $ time , train: $ train , status: $ status ) ' ;
}
@ override
bool operator = = ( dynamic other ) {
return identical ( this , other ) | |
( other . runtimeType = = runtimeType & &
other is _ $_StationArrDep & &
( identical ( other . stoppingTime , stoppingTime ) | |
other . stoppingTime = = stoppingTime ) & &
( identical ( other . time , time ) | | other . time = = time ) & &
( identical ( other . train , train ) | | other . train = = train ) & &
( identical ( other . status , status ) | | other . status = = status ) ) ;
}
@ JsonKey ( ignore: true )
@ override
int get hashCode = >
Object . hash ( runtimeType , stoppingTime , time , train , status ) ;
@ JsonKey ( ignore: true )
@ override
@ pragma ( ' vm:prefer-inline ' )
_ $ $_StationArrDepCopyWith < _ $_StationArrDep > get copyWith = >
__ $ $_StationArrDepCopyWithImpl < _ $_StationArrDep > ( this , _ $identity ) ;
@ override
Map < String , dynamic > toJson ( ) {
return _ $ $_StationArrDepToJson (
this ,
) ;
}
}
abstract class _StationArrDep implements StationArrDep {
const factory _StationArrDep (
{ required final int ? stoppingTime ,
required final DateTime time ,
required final StationTrain train ,
required final StationStatus status } ) = _ $_StationArrDep ;
factory _StationArrDep . fromJson ( Map < String , dynamic > json ) =
_ $_StationArrDep . fromJson ;
@ override
int ? get stoppingTime ;
@ override
DateTime get time ;
@ override
StationTrain get train ;
@ override
StationStatus get status ;
@ override
@ JsonKey ( ignore: true )
_ $ $_StationArrDepCopyWith < _ $_StationArrDep > get copyWith = >
throw _privateConstructorUsedError ;
}