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_train.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 ' ) ;
StationTrain _ $StationTrainFromJson ( Map < String , dynamic > json ) {
return _StationTrain . fromJson ( json ) ;
}
/// @nodoc
mixin _ $StationTrain {
String get rank = > throw _privateConstructorUsedError ;
String get number = > throw _privateConstructorUsedError ;
String get operator = > throw _privateConstructorUsedError ;
String get terminus = > throw _privateConstructorUsedError ;
List < String > ? get route = > throw _privateConstructorUsedError ;
DateTime get departureDate = > throw _privateConstructorUsedError ;
Map < String , dynamic > toJson ( ) = > throw _privateConstructorUsedError ;
@ JsonKey ( ignore: true )
$StationTrainCopyWith < StationTrain > get copyWith = >
throw _privateConstructorUsedError ;
}
/// @nodoc
abstract class $StationTrainCopyWith < $Res > {
factory $StationTrainCopyWith (
StationTrain value , $Res Function ( StationTrain ) then ) =
_ $StationTrainCopyWithImpl < $Res , StationTrain > ;
@ useResult
$Res call (
{ String rank ,
String number ,
String operator ,
String terminus ,
List < String > ? route ,
DateTime departureDate } ) ;
}
/// @nodoc
class _ $StationTrainCopyWithImpl < $Res , $Val extends StationTrain >
implements $StationTrainCopyWith < $Res > {
_ $StationTrainCopyWithImpl ( 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 ? operator = null ,
Object ? terminus = null ,
Object ? route = freezed ,
Object ? departureDate = 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 ,
operator : null = = operator
? _value . operator
: operator // ignore: cast_nullable_to_non_nullable
as String ,
terminus: null = = terminus
? _value . terminus
: terminus // ignore: cast_nullable_to_non_nullable
as String ,
route: freezed = = route
? _value . route
: route // ignore: cast_nullable_to_non_nullable
as List < String > ? ,
departureDate: null = = departureDate
? _value . departureDate
: departureDate // ignore: cast_nullable_to_non_nullable
as DateTime ,
) as $Val ) ;
}
}
/// @nodoc
abstract class _ $ $_StationTrainCopyWith < $Res >
implements $StationTrainCopyWith < $Res > {
factory _ $ $_StationTrainCopyWith (
_ $_StationTrain value , $Res Function ( _ $_StationTrain ) then ) =
__ $ $_StationTrainCopyWithImpl < $Res > ;
@ override
@ useResult
$Res call (
{ String rank ,
String number ,
String operator ,
String terminus ,
List < String > ? route ,
DateTime departureDate } ) ;
}
/// @nodoc
class __ $ $_StationTrainCopyWithImpl < $Res >
extends _ $StationTrainCopyWithImpl < $Res , _ $_StationTrain >
implements _ $ $_StationTrainCopyWith < $Res > {
__ $ $_StationTrainCopyWithImpl (
_ $_StationTrain _value , $Res Function ( _ $_StationTrain ) _then )
: super ( _value , _then ) ;
@ pragma ( ' vm:prefer-inline ' )
@ override
$Res call ( {
Object ? rank = null ,
Object ? number = null ,
Object ? operator = null ,
Object ? terminus = null ,
Object ? route = freezed ,
Object ? departureDate = null ,
} ) {
return _then ( _ $_StationTrain (
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 ,
operator : null = = operator
? _value . operator
: operator // ignore: cast_nullable_to_non_nullable
as String ,
terminus: null = = terminus
? _value . terminus
: terminus // ignore: cast_nullable_to_non_nullable
as String ,
route: freezed = = route
? _value . _route
: route // ignore: cast_nullable_to_non_nullable
as List < String > ? ,
departureDate: null = = departureDate
? _value . departureDate
: departureDate // ignore: cast_nullable_to_non_nullable
as DateTime ,
) ) ;
}
}
/// @nodoc
@ JsonSerializable ( )
class _ $_StationTrain implements _StationTrain {
const _ $_StationTrain (
{ required this . rank ,
required this . number ,
required this . operator ,
required this . terminus ,
final List < String > ? route ,
required this . departureDate } )
: _route = route ;
factory _ $_StationTrain . fromJson ( Map < String , dynamic > json ) = >
_ $ $_StationTrainFromJson ( json ) ;
@ override
final String rank ;
@ override
final String number ;
@ override
final String operator ;
@ override
final String terminus ;
final List < String > ? _route ;
@ override
List < String > ? get route {
final value = _route ;
if ( value = = null ) return null ;
2023-07-24 06:55:16 +02:00
if ( _route is EqualUnmodifiableListView ) return _route ;
2022-10-31 01:25:45 +01:00
// ignore: implicit_dynamic_type
return EqualUnmodifiableListView ( value ) ;
}
@ override
final DateTime departureDate ;
@ override
String toString ( ) {
return ' StationTrain(rank: $ rank , number: $ number , operator: $ operator , terminus: $ terminus , route: $ route , departureDate: $ departureDate ) ' ;
}
@ override
bool operator = = ( dynamic other ) {
return identical ( this , other ) | |
( other . runtimeType = = runtimeType & &
other is _ $_StationTrain & &
( identical ( other . rank , rank ) | | other . rank = = rank ) & &
( identical ( other . number , number ) | | other . number = = number ) & &
( identical ( other . operator , operator ) | |
other . operator = = operator ) & &
( identical ( other . terminus , terminus ) | |
other . terminus = = terminus ) & &
const DeepCollectionEquality ( ) . equals ( other . _route , _route ) & &
( identical ( other . departureDate , departureDate ) | |
other . departureDate = = departureDate ) ) ;
}
@ JsonKey ( ignore: true )
@ override
int get hashCode = > Object . hash ( runtimeType , rank , number , operator , terminus ,
const DeepCollectionEquality ( ) . hash ( _route ) , departureDate ) ;
@ JsonKey ( ignore: true )
@ override
@ pragma ( ' vm:prefer-inline ' )
_ $ $_StationTrainCopyWith < _ $_StationTrain > get copyWith = >
__ $ $_StationTrainCopyWithImpl < _ $_StationTrain > ( this , _ $identity ) ;
@ override
Map < String , dynamic > toJson ( ) {
return _ $ $_StationTrainToJson (
this ,
) ;
}
}
abstract class _StationTrain implements StationTrain {
const factory _StationTrain (
{ required final String rank ,
required final String number ,
required final String operator ,
required final String terminus ,
final List < String > ? route ,
required final DateTime departureDate } ) = _ $_StationTrain ;
factory _StationTrain . fromJson ( Map < String , dynamic > json ) =
_ $_StationTrain . fromJson ;
@ override
String get rank ;
@ override
String get number ;
@ override
String get operator ;
@ override
String get terminus ;
@ override
List < String > ? get route ;
@ override
DateTime get departureDate ;
@ override
@ JsonKey ( ignore: true )
_ $ $_StationTrainCopyWith < _ $_StationTrain > get copyWith = >
throw _privateConstructorUsedError ;
}