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.
187 lines
5.7 KiB
187 lines
5.7 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 'trains_result.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'); |
|
|
|
TrainsResult _$TrainsResultFromJson(Map<String, dynamic> json) { |
|
return _TrainsResult.fromJson(json); |
|
} |
|
|
|
/// @nodoc |
|
mixin _$TrainsResult { |
|
String get rank => throw _privateConstructorUsedError; |
|
String get number => throw _privateConstructorUsedError; |
|
String get company => throw _privateConstructorUsedError; |
|
|
|
Map<String, dynamic> toJson() => throw _privateConstructorUsedError; |
|
@JsonKey(ignore: true) |
|
$TrainsResultCopyWith<TrainsResult> get copyWith => |
|
throw _privateConstructorUsedError; |
|
} |
|
|
|
/// @nodoc |
|
abstract class $TrainsResultCopyWith<$Res> { |
|
factory $TrainsResultCopyWith( |
|
TrainsResult value, $Res Function(TrainsResult) then) = |
|
_$TrainsResultCopyWithImpl<$Res, TrainsResult>; |
|
@useResult |
|
$Res call({String rank, String number, String company}); |
|
} |
|
|
|
/// @nodoc |
|
class _$TrainsResultCopyWithImpl<$Res, $Val extends TrainsResult> |
|
implements $TrainsResultCopyWith<$Res> { |
|
_$TrainsResultCopyWithImpl(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? company = 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, |
|
company: null == company |
|
? _value.company |
|
: company // ignore: cast_nullable_to_non_nullable |
|
as String, |
|
) as $Val); |
|
} |
|
} |
|
|
|
/// @nodoc |
|
abstract class _$$_TrainsResultCopyWith<$Res> |
|
implements $TrainsResultCopyWith<$Res> { |
|
factory _$$_TrainsResultCopyWith( |
|
_$_TrainsResult value, $Res Function(_$_TrainsResult) then) = |
|
__$$_TrainsResultCopyWithImpl<$Res>; |
|
@override |
|
@useResult |
|
$Res call({String rank, String number, String company}); |
|
} |
|
|
|
/// @nodoc |
|
class __$$_TrainsResultCopyWithImpl<$Res> |
|
extends _$TrainsResultCopyWithImpl<$Res, _$_TrainsResult> |
|
implements _$$_TrainsResultCopyWith<$Res> { |
|
__$$_TrainsResultCopyWithImpl( |
|
_$_TrainsResult _value, $Res Function(_$_TrainsResult) _then) |
|
: super(_value, _then); |
|
|
|
@pragma('vm:prefer-inline') |
|
@override |
|
$Res call({ |
|
Object? rank = null, |
|
Object? number = null, |
|
Object? company = null, |
|
}) { |
|
return _then(_$_TrainsResult( |
|
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, |
|
company: null == company |
|
? _value.company |
|
: company // ignore: cast_nullable_to_non_nullable |
|
as String, |
|
)); |
|
} |
|
} |
|
|
|
/// @nodoc |
|
@JsonSerializable() |
|
class _$_TrainsResult implements _TrainsResult { |
|
const _$_TrainsResult( |
|
{required this.rank, required this.number, required this.company}); |
|
|
|
factory _$_TrainsResult.fromJson(Map<String, dynamic> json) => |
|
_$$_TrainsResultFromJson(json); |
|
|
|
@override |
|
final String rank; |
|
@override |
|
final String number; |
|
@override |
|
final String company; |
|
|
|
@override |
|
String toString() { |
|
return 'TrainsResult(rank: $rank, number: $number, company: $company)'; |
|
} |
|
|
|
@override |
|
bool operator ==(dynamic other) { |
|
return identical(this, other) || |
|
(other.runtimeType == runtimeType && |
|
other is _$_TrainsResult && |
|
(identical(other.rank, rank) || other.rank == rank) && |
|
(identical(other.number, number) || other.number == number) && |
|
(identical(other.company, company) || other.company == company)); |
|
} |
|
|
|
@JsonKey(ignore: true) |
|
@override |
|
int get hashCode => Object.hash(runtimeType, rank, number, company); |
|
|
|
@JsonKey(ignore: true) |
|
@override |
|
@pragma('vm:prefer-inline') |
|
_$$_TrainsResultCopyWith<_$_TrainsResult> get copyWith => |
|
__$$_TrainsResultCopyWithImpl<_$_TrainsResult>(this, _$identity); |
|
|
|
@override |
|
Map<String, dynamic> toJson() { |
|
return _$$_TrainsResultToJson( |
|
this, |
|
); |
|
} |
|
} |
|
|
|
abstract class _TrainsResult implements TrainsResult { |
|
const factory _TrainsResult( |
|
{required final String rank, |
|
required final String number, |
|
required final String company}) = _$_TrainsResult; |
|
|
|
factory _TrainsResult.fromJson(Map<String, dynamic> json) = |
|
_$_TrainsResult.fromJson; |
|
|
|
@override |
|
String get rank; |
|
@override |
|
String get number; |
|
@override |
|
String get company; |
|
@override |
|
@JsonKey(ignore: true) |
|
_$$_TrainsResultCopyWith<_$_TrainsResult> get copyWith => |
|
throw _privateConstructorUsedError; |
|
}
|
|
|