// 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 'rating_model.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'); RatingModel _$RatingModelFromJson(Map json) { return _RatingModel.fromJson(json); } /// @nodoc mixin _$RatingModel { DateTime get date => throw _privateConstructorUsedError; String get title => throw _privateConstructorUsedError; int get amount => throw _privateConstructorUsedError; /// Serializes this RatingModel to a JSON map. Map toJson() => throw _privateConstructorUsedError; /// Create a copy of RatingModel /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) $RatingModelCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $RatingModelCopyWith<$Res> { factory $RatingModelCopyWith( RatingModel value, $Res Function(RatingModel) then) = _$RatingModelCopyWithImpl<$Res, RatingModel>; @useResult $Res call({DateTime date, String title, int amount}); } /// @nodoc class _$RatingModelCopyWithImpl<$Res, $Val extends RatingModel> implements $RatingModelCopyWith<$Res> { _$RatingModelCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; // ignore: unused_field final $Res Function($Val) _then; /// Create a copy of RatingModel /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? date = null, Object? title = null, Object? amount = null, }) { return _then(_value.copyWith( date: null == date ? _value.date : date // ignore: cast_nullable_to_non_nullable as DateTime, title: null == title ? _value.title : title // ignore: cast_nullable_to_non_nullable as String, amount: null == amount ? _value.amount : amount // ignore: cast_nullable_to_non_nullable as int, ) as $Val); } } /// @nodoc abstract class _$$RatingModelImplCopyWith<$Res> implements $RatingModelCopyWith<$Res> { factory _$$RatingModelImplCopyWith( _$RatingModelImpl value, $Res Function(_$RatingModelImpl) then) = __$$RatingModelImplCopyWithImpl<$Res>; @override @useResult $Res call({DateTime date, String title, int amount}); } /// @nodoc class __$$RatingModelImplCopyWithImpl<$Res> extends _$RatingModelCopyWithImpl<$Res, _$RatingModelImpl> implements _$$RatingModelImplCopyWith<$Res> { __$$RatingModelImplCopyWithImpl( _$RatingModelImpl _value, $Res Function(_$RatingModelImpl) _then) : super(_value, _then); /// Create a copy of RatingModel /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? date = null, Object? title = null, Object? amount = null, }) { return _then(_$RatingModelImpl( date: null == date ? _value.date : date // ignore: cast_nullable_to_non_nullable as DateTime, title: null == title ? _value.title : title // ignore: cast_nullable_to_non_nullable as String, amount: null == amount ? _value.amount : amount // ignore: cast_nullable_to_non_nullable as int, )); } } /// @nodoc @JsonSerializable() class _$RatingModelImpl implements _RatingModel { _$RatingModelImpl( {required this.date, required this.title, required this.amount}); factory _$RatingModelImpl.fromJson(Map json) => _$$RatingModelImplFromJson(json); @override final DateTime date; @override final String title; @override final int amount; @override String toString() { return 'RatingModel(date: $date, title: $title, amount: $amount)'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$RatingModelImpl && (identical(other.date, date) || other.date == date) && (identical(other.title, title) || other.title == title) && (identical(other.amount, amount) || other.amount == amount)); } @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, date, title, amount); /// Create a copy of RatingModel /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$RatingModelImplCopyWith<_$RatingModelImpl> get copyWith => __$$RatingModelImplCopyWithImpl<_$RatingModelImpl>(this, _$identity); @override Map toJson() { return _$$RatingModelImplToJson( this, ); } } abstract class _RatingModel implements RatingModel { factory _RatingModel( {required final DateTime date, required final String title, required final int amount}) = _$RatingModelImpl; factory _RatingModel.fromJson(Map json) = _$RatingModelImpl.fromJson; @override DateTime get date; @override String get title; @override int get amount; /// Create a copy of RatingModel /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) _$$RatingModelImplCopyWith<_$RatingModelImpl> get copyWith => throw _privateConstructorUsedError; }