// 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 'job.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#adding-getters-and-methods-to-our-models'); Job _$JobFromJson(Map json) { return _Job.fromJson(json); } /// @nodoc mixin _$Job { String get id => throw _privateConstructorUsedError; JobTipi get tip => throw _privateConstructorUsedError; String get projeId => throw _privateConstructorUsedError; Map get params => throw _privateConstructorUsedError; JobDurum get durum => throw _privateConstructorUsedError; double get ilerleme => throw _privateConstructorUsedError; String get fazAciklama => throw _privateConstructorUsedError; List get log => throw _privateConstructorUsedError; DateTime? get baslama => throw _privateConstructorUsedError; DateTime? get bitis => throw _privateConstructorUsedError; String? get hata => throw _privateConstructorUsedError; int get oncelik => throw _privateConstructorUsedError; /// Serializes this Job to a JSON map. Map toJson() => throw _privateConstructorUsedError; /// Create a copy of Job /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) $JobCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $JobCopyWith<$Res> { factory $JobCopyWith(Job value, $Res Function(Job) then) = _$JobCopyWithImpl<$Res, Job>; @useResult $Res call( {String id, JobTipi tip, String projeId, Map params, JobDurum durum, double ilerleme, String fazAciklama, List log, DateTime? baslama, DateTime? bitis, String? hata, int oncelik}); } /// @nodoc class _$JobCopyWithImpl<$Res, $Val extends Job> implements $JobCopyWith<$Res> { _$JobCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; // ignore: unused_field final $Res Function($Val) _then; /// Create a copy of Job /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? id = null, Object? tip = null, Object? projeId = null, Object? params = null, Object? durum = null, Object? ilerleme = null, Object? fazAciklama = null, Object? log = null, Object? baslama = freezed, Object? bitis = freezed, Object? hata = freezed, Object? oncelik = null, }) { return _then(_value.copyWith( id: null == id ? _value.id : id // ignore: cast_nullable_to_non_nullable as String, tip: null == tip ? _value.tip : tip // ignore: cast_nullable_to_non_nullable as JobTipi, projeId: null == projeId ? _value.projeId : projeId // ignore: cast_nullable_to_non_nullable as String, params: null == params ? _value.params : params // ignore: cast_nullable_to_non_nullable as Map, durum: null == durum ? _value.durum : durum // ignore: cast_nullable_to_non_nullable as JobDurum, ilerleme: null == ilerleme ? _value.ilerleme : ilerleme // ignore: cast_nullable_to_non_nullable as double, fazAciklama: null == fazAciklama ? _value.fazAciklama : fazAciklama // ignore: cast_nullable_to_non_nullable as String, log: null == log ? _value.log : log // ignore: cast_nullable_to_non_nullable as List, baslama: freezed == baslama ? _value.baslama : baslama // ignore: cast_nullable_to_non_nullable as DateTime?, bitis: freezed == bitis ? _value.bitis : bitis // ignore: cast_nullable_to_non_nullable as DateTime?, hata: freezed == hata ? _value.hata : hata // ignore: cast_nullable_to_non_nullable as String?, oncelik: null == oncelik ? _value.oncelik : oncelik // ignore: cast_nullable_to_non_nullable as int, ) as $Val); } } /// @nodoc abstract class _$$JobImplCopyWith<$Res> implements $JobCopyWith<$Res> { factory _$$JobImplCopyWith(_$JobImpl value, $Res Function(_$JobImpl) then) = __$$JobImplCopyWithImpl<$Res>; @override @useResult $Res call( {String id, JobTipi tip, String projeId, Map params, JobDurum durum, double ilerleme, String fazAciklama, List log, DateTime? baslama, DateTime? bitis, String? hata, int oncelik}); } /// @nodoc class __$$JobImplCopyWithImpl<$Res> extends _$JobCopyWithImpl<$Res, _$JobImpl> implements _$$JobImplCopyWith<$Res> { __$$JobImplCopyWithImpl(_$JobImpl _value, $Res Function(_$JobImpl) _then) : super(_value, _then); /// Create a copy of Job /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? id = null, Object? tip = null, Object? projeId = null, Object? params = null, Object? durum = null, Object? ilerleme = null, Object? fazAciklama = null, Object? log = null, Object? baslama = freezed, Object? bitis = freezed, Object? hata = freezed, Object? oncelik = null, }) { return _then(_$JobImpl( id: null == id ? _value.id : id // ignore: cast_nullable_to_non_nullable as String, tip: null == tip ? _value.tip : tip // ignore: cast_nullable_to_non_nullable as JobTipi, projeId: null == projeId ? _value.projeId : projeId // ignore: cast_nullable_to_non_nullable as String, params: null == params ? _value._params : params // ignore: cast_nullable_to_non_nullable as Map, durum: null == durum ? _value.durum : durum // ignore: cast_nullable_to_non_nullable as JobDurum, ilerleme: null == ilerleme ? _value.ilerleme : ilerleme // ignore: cast_nullable_to_non_nullable as double, fazAciklama: null == fazAciklama ? _value.fazAciklama : fazAciklama // ignore: cast_nullable_to_non_nullable as String, log: null == log ? _value._log : log // ignore: cast_nullable_to_non_nullable as List, baslama: freezed == baslama ? _value.baslama : baslama // ignore: cast_nullable_to_non_nullable as DateTime?, bitis: freezed == bitis ? _value.bitis : bitis // ignore: cast_nullable_to_non_nullable as DateTime?, hata: freezed == hata ? _value.hata : hata // ignore: cast_nullable_to_non_nullable as String?, oncelik: null == oncelik ? _value.oncelik : oncelik // ignore: cast_nullable_to_non_nullable as int, )); } } /// @nodoc @JsonSerializable() class _$JobImpl implements _Job { const _$JobImpl( {required this.id, required this.tip, required this.projeId, final Map params = const {}, this.durum = JobDurum.kuyruk, this.ilerleme = 0.0, this.fazAciklama = '', final List log = const [], this.baslama, this.bitis, this.hata, this.oncelik = 0}) : _params = params, _log = log; factory _$JobImpl.fromJson(Map json) => _$$JobImplFromJson(json); @override final String id; @override final JobTipi tip; @override final String projeId; final Map _params; @override @JsonKey() Map get params { if (_params is EqualUnmodifiableMapView) return _params; // ignore: implicit_dynamic_type return EqualUnmodifiableMapView(_params); } @override @JsonKey() final JobDurum durum; @override @JsonKey() final double ilerleme; @override @JsonKey() final String fazAciklama; final List _log; @override @JsonKey() List get log { if (_log is EqualUnmodifiableListView) return _log; // ignore: implicit_dynamic_type return EqualUnmodifiableListView(_log); } @override final DateTime? baslama; @override final DateTime? bitis; @override final String? hata; @override @JsonKey() final int oncelik; @override String toString() { return 'Job(id: $id, tip: $tip, projeId: $projeId, params: $params, durum: $durum, ilerleme: $ilerleme, fazAciklama: $fazAciklama, log: $log, baslama: $baslama, bitis: $bitis, hata: $hata, oncelik: $oncelik)'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$JobImpl && (identical(other.id, id) || other.id == id) && (identical(other.tip, tip) || other.tip == tip) && (identical(other.projeId, projeId) || other.projeId == projeId) && const DeepCollectionEquality().equals(other._params, _params) && (identical(other.durum, durum) || other.durum == durum) && (identical(other.ilerleme, ilerleme) || other.ilerleme == ilerleme) && (identical(other.fazAciklama, fazAciklama) || other.fazAciklama == fazAciklama) && const DeepCollectionEquality().equals(other._log, _log) && (identical(other.baslama, baslama) || other.baslama == baslama) && (identical(other.bitis, bitis) || other.bitis == bitis) && (identical(other.hata, hata) || other.hata == hata) && (identical(other.oncelik, oncelik) || other.oncelik == oncelik)); } @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash( runtimeType, id, tip, projeId, const DeepCollectionEquality().hash(_params), durum, ilerleme, fazAciklama, const DeepCollectionEquality().hash(_log), baslama, bitis, hata, oncelik); /// Create a copy of Job /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$JobImplCopyWith<_$JobImpl> get copyWith => __$$JobImplCopyWithImpl<_$JobImpl>(this, _$identity); @override Map toJson() { return _$$JobImplToJson( this, ); } } abstract class _Job implements Job { const factory _Job( {required final String id, required final JobTipi tip, required final String projeId, final Map params, final JobDurum durum, final double ilerleme, final String fazAciklama, final List log, final DateTime? baslama, final DateTime? bitis, final String? hata, final int oncelik}) = _$JobImpl; factory _Job.fromJson(Map json) = _$JobImpl.fromJson; @override String get id; @override JobTipi get tip; @override String get projeId; @override Map get params; @override JobDurum get durum; @override double get ilerleme; @override String get fazAciklama; @override List get log; @override DateTime? get baslama; @override DateTime? get bitis; @override String? get hata; @override int get oncelik; /// Create a copy of Job /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) _$$JobImplCopyWith<_$JobImpl> get copyWith => throw _privateConstructorUsedError; }