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.
179 lines
5.7 KiB
179 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 'stations_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'); |
|
|
|
StationsResult _$StationsResultFromJson(Map<String, dynamic> json) { |
|
return _StationsResult.fromJson(json); |
|
} |
|
|
|
/// @nodoc |
|
mixin _$StationsResult { |
|
String get name => throw _privateConstructorUsedError; |
|
List<String>? get stoppedAtBy => throw _privateConstructorUsedError; |
|
|
|
Map<String, dynamic> toJson() => throw _privateConstructorUsedError; |
|
@JsonKey(ignore: true) |
|
$StationsResultCopyWith<StationsResult> get copyWith => |
|
throw _privateConstructorUsedError; |
|
} |
|
|
|
/// @nodoc |
|
abstract class $StationsResultCopyWith<$Res> { |
|
factory $StationsResultCopyWith( |
|
StationsResult value, $Res Function(StationsResult) then) = |
|
_$StationsResultCopyWithImpl<$Res, StationsResult>; |
|
@useResult |
|
$Res call({String name, List<String>? stoppedAtBy}); |
|
} |
|
|
|
/// @nodoc |
|
class _$StationsResultCopyWithImpl<$Res, $Val extends StationsResult> |
|
implements $StationsResultCopyWith<$Res> { |
|
_$StationsResultCopyWithImpl(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? stoppedAtBy = freezed, |
|
}) { |
|
return _then(_value.copyWith( |
|
name: null == name |
|
? _value.name |
|
: name // ignore: cast_nullable_to_non_nullable |
|
as String, |
|
stoppedAtBy: freezed == stoppedAtBy |
|
? _value.stoppedAtBy |
|
: stoppedAtBy // ignore: cast_nullable_to_non_nullable |
|
as List<String>?, |
|
) as $Val); |
|
} |
|
} |
|
|
|
/// @nodoc |
|
abstract class _$$_StationsResultCopyWith<$Res> |
|
implements $StationsResultCopyWith<$Res> { |
|
factory _$$_StationsResultCopyWith( |
|
_$_StationsResult value, $Res Function(_$_StationsResult) then) = |
|
__$$_StationsResultCopyWithImpl<$Res>; |
|
@override |
|
@useResult |
|
$Res call({String name, List<String>? stoppedAtBy}); |
|
} |
|
|
|
/// @nodoc |
|
class __$$_StationsResultCopyWithImpl<$Res> |
|
extends _$StationsResultCopyWithImpl<$Res, _$_StationsResult> |
|
implements _$$_StationsResultCopyWith<$Res> { |
|
__$$_StationsResultCopyWithImpl( |
|
_$_StationsResult _value, $Res Function(_$_StationsResult) _then) |
|
: super(_value, _then); |
|
|
|
@pragma('vm:prefer-inline') |
|
@override |
|
$Res call({ |
|
Object? name = null, |
|
Object? stoppedAtBy = freezed, |
|
}) { |
|
return _then(_$_StationsResult( |
|
name: null == name |
|
? _value.name |
|
: name // ignore: cast_nullable_to_non_nullable |
|
as String, |
|
stoppedAtBy: freezed == stoppedAtBy |
|
? _value._stoppedAtBy |
|
: stoppedAtBy // ignore: cast_nullable_to_non_nullable |
|
as List<String>?, |
|
)); |
|
} |
|
} |
|
|
|
/// @nodoc |
|
@JsonSerializable() |
|
class _$_StationsResult implements _StationsResult { |
|
const _$_StationsResult({required this.name, final List<String>? stoppedAtBy}) |
|
: _stoppedAtBy = stoppedAtBy; |
|
|
|
factory _$_StationsResult.fromJson(Map<String, dynamic> json) => |
|
_$$_StationsResultFromJson(json); |
|
|
|
@override |
|
final String name; |
|
final List<String>? _stoppedAtBy; |
|
@override |
|
List<String>? get stoppedAtBy { |
|
final value = _stoppedAtBy; |
|
if (value == null) return null; |
|
if (_stoppedAtBy is EqualUnmodifiableListView) return _stoppedAtBy; |
|
// ignore: implicit_dynamic_type |
|
return EqualUnmodifiableListView(value); |
|
} |
|
|
|
@override |
|
String toString() { |
|
return 'StationsResult(name: $name, stoppedAtBy: $stoppedAtBy)'; |
|
} |
|
|
|
@override |
|
bool operator ==(dynamic other) { |
|
return identical(this, other) || |
|
(other.runtimeType == runtimeType && |
|
other is _$_StationsResult && |
|
(identical(other.name, name) || other.name == name) && |
|
const DeepCollectionEquality() |
|
.equals(other._stoppedAtBy, _stoppedAtBy)); |
|
} |
|
|
|
@JsonKey(ignore: true) |
|
@override |
|
int get hashCode => Object.hash( |
|
runtimeType, name, const DeepCollectionEquality().hash(_stoppedAtBy)); |
|
|
|
@JsonKey(ignore: true) |
|
@override |
|
@pragma('vm:prefer-inline') |
|
_$$_StationsResultCopyWith<_$_StationsResult> get copyWith => |
|
__$$_StationsResultCopyWithImpl<_$_StationsResult>(this, _$identity); |
|
|
|
@override |
|
Map<String, dynamic> toJson() { |
|
return _$$_StationsResultToJson( |
|
this, |
|
); |
|
} |
|
} |
|
|
|
abstract class _StationsResult implements StationsResult { |
|
const factory _StationsResult( |
|
{required final String name, |
|
final List<String>? stoppedAtBy}) = _$_StationsResult; |
|
|
|
factory _StationsResult.fromJson(Map<String, dynamic> json) = |
|
_$_StationsResult.fromJson; |
|
|
|
@override |
|
String get name; |
|
@override |
|
List<String>? get stoppedAtBy; |
|
@override |
|
@JsonKey(ignore: true) |
|
_$$_StationsResultCopyWith<_$_StationsResult> get copyWith => |
|
throw _privateConstructorUsedError; |
|
}
|
|
|