// 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 part of 'stations_result.dart'; // ************************************************************************** // FreezedGenerator // ************************************************************************** T _$identity(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 json) { return _StationsResult.fromJson(json); } /// @nodoc mixin _$StationsResult { String get name => throw _privateConstructorUsedError; List? get stoppedAtBy => throw _privateConstructorUsedError; Map toJson() => throw _privateConstructorUsedError; @JsonKey(ignore: true) $StationsResultCopyWith 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? 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?, ) 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? 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?, )); } } /// @nodoc @JsonSerializable() class _$_StationsResult implements _StationsResult { const _$_StationsResult({required this.name, final List? stoppedAtBy}) : _stoppedAtBy = stoppedAtBy; factory _$_StationsResult.fromJson(Map json) => _$$_StationsResultFromJson(json); @override final String name; final List? _stoppedAtBy; @override List? get stoppedAtBy { final value = _stoppedAtBy; if (value == null) return null; // 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 toJson() { return _$$_StationsResultToJson( this, ); } } abstract class _StationsResult implements StationsResult { const factory _StationsResult( {required final String name, final List? stoppedAtBy}) = _$_StationsResult; factory _StationsResult.fromJson(Map json) = _$_StationsResult.fromJson; @override String get name; @override List? get stoppedAtBy; @override @JsonKey(ignore: true) _$$_StationsResultCopyWith<_$_StationsResult> get copyWith => throw _privateConstructorUsedError; }