// 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 'consultant_review_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'); ConsultantReviewModel _$ConsultantReviewModelFromJson( Map json) { return _ConsultantReviewModel.fromJson(json); } /// @nodoc mixin _$ConsultantReviewModel { String get planName => throw _privateConstructorUsedError; int get planDuration => throw _privateConstructorUsedError; int get currentPlanDay => throw _privateConstructorUsedError; ConsultantComments get consultantComments => throw _privateConstructorUsedError; /// Serializes this ConsultantReviewModel to a JSON map. Map toJson() => throw _privateConstructorUsedError; /// Create a copy of ConsultantReviewModel /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) $ConsultantReviewModelCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $ConsultantReviewModelCopyWith<$Res> { factory $ConsultantReviewModelCopyWith(ConsultantReviewModel value, $Res Function(ConsultantReviewModel) then) = _$ConsultantReviewModelCopyWithImpl<$Res, ConsultantReviewModel>; @useResult $Res call( {String planName, int planDuration, int currentPlanDay, ConsultantComments consultantComments}); $ConsultantCommentsCopyWith<$Res> get consultantComments; } /// @nodoc class _$ConsultantReviewModelCopyWithImpl<$Res, $Val extends ConsultantReviewModel> implements $ConsultantReviewModelCopyWith<$Res> { _$ConsultantReviewModelCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; // ignore: unused_field final $Res Function($Val) _then; /// Create a copy of ConsultantReviewModel /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? planName = null, Object? planDuration = null, Object? currentPlanDay = null, Object? consultantComments = null, }) { return _then(_value.copyWith( planName: null == planName ? _value.planName : planName // ignore: cast_nullable_to_non_nullable as String, planDuration: null == planDuration ? _value.planDuration : planDuration // ignore: cast_nullable_to_non_nullable as int, currentPlanDay: null == currentPlanDay ? _value.currentPlanDay : currentPlanDay // ignore: cast_nullable_to_non_nullable as int, consultantComments: null == consultantComments ? _value.consultantComments : consultantComments // ignore: cast_nullable_to_non_nullable as ConsultantComments, ) as $Val); } /// Create a copy of ConsultantReviewModel /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $ConsultantCommentsCopyWith<$Res> get consultantComments { return $ConsultantCommentsCopyWith<$Res>(_value.consultantComments, (value) { return _then(_value.copyWith(consultantComments: value) as $Val); }); } } /// @nodoc abstract class _$$ConsultantReviewModelImplCopyWith<$Res> implements $ConsultantReviewModelCopyWith<$Res> { factory _$$ConsultantReviewModelImplCopyWith( _$ConsultantReviewModelImpl value, $Res Function(_$ConsultantReviewModelImpl) then) = __$$ConsultantReviewModelImplCopyWithImpl<$Res>; @override @useResult $Res call( {String planName, int planDuration, int currentPlanDay, ConsultantComments consultantComments}); @override $ConsultantCommentsCopyWith<$Res> get consultantComments; } /// @nodoc class __$$ConsultantReviewModelImplCopyWithImpl<$Res> extends _$ConsultantReviewModelCopyWithImpl<$Res, _$ConsultantReviewModelImpl> implements _$$ConsultantReviewModelImplCopyWith<$Res> { __$$ConsultantReviewModelImplCopyWithImpl(_$ConsultantReviewModelImpl _value, $Res Function(_$ConsultantReviewModelImpl) _then) : super(_value, _then); /// Create a copy of ConsultantReviewModel /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? planName = null, Object? planDuration = null, Object? currentPlanDay = null, Object? consultantComments = null, }) { return _then(_$ConsultantReviewModelImpl( planName: null == planName ? _value.planName : planName // ignore: cast_nullable_to_non_nullable as String, planDuration: null == planDuration ? _value.planDuration : planDuration // ignore: cast_nullable_to_non_nullable as int, currentPlanDay: null == currentPlanDay ? _value.currentPlanDay : currentPlanDay // ignore: cast_nullable_to_non_nullable as int, consultantComments: null == consultantComments ? _value.consultantComments : consultantComments // ignore: cast_nullable_to_non_nullable as ConsultantComments, )); } } /// @nodoc @JsonSerializable() class _$ConsultantReviewModelImpl implements _ConsultantReviewModel { _$ConsultantReviewModelImpl( {required this.planName, required this.planDuration, required this.currentPlanDay, required this.consultantComments}); factory _$ConsultantReviewModelImpl.fromJson(Map json) => _$$ConsultantReviewModelImplFromJson(json); @override final String planName; @override final int planDuration; @override final int currentPlanDay; @override final ConsultantComments consultantComments; @override String toString() { return 'ConsultantReviewModel(planName: $planName, planDuration: $planDuration, currentPlanDay: $currentPlanDay, consultantComments: $consultantComments)'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$ConsultantReviewModelImpl && (identical(other.planName, planName) || other.planName == planName) && (identical(other.planDuration, planDuration) || other.planDuration == planDuration) && (identical(other.currentPlanDay, currentPlanDay) || other.currentPlanDay == currentPlanDay) && (identical(other.consultantComments, consultantComments) || other.consultantComments == consultantComments)); } @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash( runtimeType, planName, planDuration, currentPlanDay, consultantComments); /// Create a copy of ConsultantReviewModel /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$ConsultantReviewModelImplCopyWith<_$ConsultantReviewModelImpl> get copyWith => __$$ConsultantReviewModelImplCopyWithImpl< _$ConsultantReviewModelImpl>(this, _$identity); @override Map toJson() { return _$$ConsultantReviewModelImplToJson( this, ); } } abstract class _ConsultantReviewModel implements ConsultantReviewModel { factory _ConsultantReviewModel( {required final String planName, required final int planDuration, required final int currentPlanDay, required final ConsultantComments consultantComments}) = _$ConsultantReviewModelImpl; factory _ConsultantReviewModel.fromJson(Map json) = _$ConsultantReviewModelImpl.fromJson; @override String get planName; @override int get planDuration; @override int get currentPlanDay; @override ConsultantComments get consultantComments; /// Create a copy of ConsultantReviewModel /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) _$$ConsultantReviewModelImplCopyWith<_$ConsultantReviewModelImpl> get copyWith => throw _privateConstructorUsedError; } ConsultantComments _$ConsultantCommentsFromJson(Map json) { return _ConsultantComments.fromJson(json); } /// @nodoc mixin _$ConsultantComments { String? get dayComment => throw _privateConstructorUsedError; List get mealsComments => throw _privateConstructorUsedError; List get portionsComments => throw _privateConstructorUsedError; /// Serializes this ConsultantComments to a JSON map. Map toJson() => throw _privateConstructorUsedError; /// Create a copy of ConsultantComments /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) $ConsultantCommentsCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $ConsultantCommentsCopyWith<$Res> { factory $ConsultantCommentsCopyWith( ConsultantComments value, $Res Function(ConsultantComments) then) = _$ConsultantCommentsCopyWithImpl<$Res, ConsultantComments>; @useResult $Res call( {String? dayComment, List mealsComments, List portionsComments}); } /// @nodoc class _$ConsultantCommentsCopyWithImpl<$Res, $Val extends ConsultantComments> implements $ConsultantCommentsCopyWith<$Res> { _$ConsultantCommentsCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; // ignore: unused_field final $Res Function($Val) _then; /// Create a copy of ConsultantComments /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? dayComment = freezed, Object? mealsComments = null, Object? portionsComments = null, }) { return _then(_value.copyWith( dayComment: freezed == dayComment ? _value.dayComment : dayComment // ignore: cast_nullable_to_non_nullable as String?, mealsComments: null == mealsComments ? _value.mealsComments : mealsComments // ignore: cast_nullable_to_non_nullable as List, portionsComments: null == portionsComments ? _value.portionsComments : portionsComments // ignore: cast_nullable_to_non_nullable as List, ) as $Val); } } /// @nodoc abstract class _$$ConsultantCommentsImplCopyWith<$Res> implements $ConsultantCommentsCopyWith<$Res> { factory _$$ConsultantCommentsImplCopyWith(_$ConsultantCommentsImpl value, $Res Function(_$ConsultantCommentsImpl) then) = __$$ConsultantCommentsImplCopyWithImpl<$Res>; @override @useResult $Res call( {String? dayComment, List mealsComments, List portionsComments}); } /// @nodoc class __$$ConsultantCommentsImplCopyWithImpl<$Res> extends _$ConsultantCommentsCopyWithImpl<$Res, _$ConsultantCommentsImpl> implements _$$ConsultantCommentsImplCopyWith<$Res> { __$$ConsultantCommentsImplCopyWithImpl(_$ConsultantCommentsImpl _value, $Res Function(_$ConsultantCommentsImpl) _then) : super(_value, _then); /// Create a copy of ConsultantComments /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? dayComment = freezed, Object? mealsComments = null, Object? portionsComments = null, }) { return _then(_$ConsultantCommentsImpl( dayComment: freezed == dayComment ? _value.dayComment : dayComment // ignore: cast_nullable_to_non_nullable as String?, mealsComments: null == mealsComments ? _value._mealsComments : mealsComments // ignore: cast_nullable_to_non_nullable as List, portionsComments: null == portionsComments ? _value._portionsComments : portionsComments // ignore: cast_nullable_to_non_nullable as List, )); } } /// @nodoc @JsonSerializable() class _$ConsultantCommentsImpl implements _ConsultantComments { _$ConsultantCommentsImpl( {required this.dayComment, required final List mealsComments, required final List portionsComments}) : _mealsComments = mealsComments, _portionsComments = portionsComments; factory _$ConsultantCommentsImpl.fromJson(Map json) => _$$ConsultantCommentsImplFromJson(json); @override final String? dayComment; final List _mealsComments; @override List get mealsComments { if (_mealsComments is EqualUnmodifiableListView) return _mealsComments; // ignore: implicit_dynamic_type return EqualUnmodifiableListView(_mealsComments); } final List _portionsComments; @override List get portionsComments { if (_portionsComments is EqualUnmodifiableListView) return _portionsComments; // ignore: implicit_dynamic_type return EqualUnmodifiableListView(_portionsComments); } @override String toString() { return 'ConsultantComments(dayComment: $dayComment, mealsComments: $mealsComments, portionsComments: $portionsComments)'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$ConsultantCommentsImpl && (identical(other.dayComment, dayComment) || other.dayComment == dayComment) && const DeepCollectionEquality() .equals(other._mealsComments, _mealsComments) && const DeepCollectionEquality() .equals(other._portionsComments, _portionsComments)); } @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash( runtimeType, dayComment, const DeepCollectionEquality().hash(_mealsComments), const DeepCollectionEquality().hash(_portionsComments)); /// Create a copy of ConsultantComments /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$ConsultantCommentsImplCopyWith<_$ConsultantCommentsImpl> get copyWith => __$$ConsultantCommentsImplCopyWithImpl<_$ConsultantCommentsImpl>( this, _$identity); @override Map toJson() { return _$$ConsultantCommentsImplToJson( this, ); } } abstract class _ConsultantComments implements ConsultantComments { factory _ConsultantComments( {required final String? dayComment, required final List mealsComments, required final List portionsComments}) = _$ConsultantCommentsImpl; factory _ConsultantComments.fromJson(Map json) = _$ConsultantCommentsImpl.fromJson; @override String? get dayComment; @override List get mealsComments; @override List get portionsComments; /// Create a copy of ConsultantComments /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) _$$ConsultantCommentsImplCopyWith<_$ConsultantCommentsImpl> get copyWith => throw _privateConstructorUsedError; } MealComment _$MealCommentFromJson(Map json) { return _MealComment.fromJson(json); } /// @nodoc mixin _$MealComment { String get comment => throw _privateConstructorUsedError; int get typeNo => throw _privateConstructorUsedError; /// Serializes this MealComment to a JSON map. Map toJson() => throw _privateConstructorUsedError; /// Create a copy of MealComment /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) $MealCommentCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $MealCommentCopyWith<$Res> { factory $MealCommentCopyWith( MealComment value, $Res Function(MealComment) then) = _$MealCommentCopyWithImpl<$Res, MealComment>; @useResult $Res call({String comment, int typeNo}); } /// @nodoc class _$MealCommentCopyWithImpl<$Res, $Val extends MealComment> implements $MealCommentCopyWith<$Res> { _$MealCommentCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; // ignore: unused_field final $Res Function($Val) _then; /// Create a copy of MealComment /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? comment = null, Object? typeNo = null, }) { return _then(_value.copyWith( comment: null == comment ? _value.comment : comment // ignore: cast_nullable_to_non_nullable as String, typeNo: null == typeNo ? _value.typeNo : typeNo // ignore: cast_nullable_to_non_nullable as int, ) as $Val); } } /// @nodoc abstract class _$$MealCommentImplCopyWith<$Res> implements $MealCommentCopyWith<$Res> { factory _$$MealCommentImplCopyWith( _$MealCommentImpl value, $Res Function(_$MealCommentImpl) then) = __$$MealCommentImplCopyWithImpl<$Res>; @override @useResult $Res call({String comment, int typeNo}); } /// @nodoc class __$$MealCommentImplCopyWithImpl<$Res> extends _$MealCommentCopyWithImpl<$Res, _$MealCommentImpl> implements _$$MealCommentImplCopyWith<$Res> { __$$MealCommentImplCopyWithImpl( _$MealCommentImpl _value, $Res Function(_$MealCommentImpl) _then) : super(_value, _then); /// Create a copy of MealComment /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? comment = null, Object? typeNo = null, }) { return _then(_$MealCommentImpl( comment: null == comment ? _value.comment : comment // ignore: cast_nullable_to_non_nullable as String, typeNo: null == typeNo ? _value.typeNo : typeNo // ignore: cast_nullable_to_non_nullable as int, )); } } /// @nodoc @JsonSerializable() class _$MealCommentImpl implements _MealComment { _$MealCommentImpl({required this.comment, required this.typeNo}); factory _$MealCommentImpl.fromJson(Map json) => _$$MealCommentImplFromJson(json); @override final String comment; @override final int typeNo; @override String toString() { return 'MealComment(comment: $comment, typeNo: $typeNo)'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$MealCommentImpl && (identical(other.comment, comment) || other.comment == comment) && (identical(other.typeNo, typeNo) || other.typeNo == typeNo)); } @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, comment, typeNo); /// Create a copy of MealComment /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$MealCommentImplCopyWith<_$MealCommentImpl> get copyWith => __$$MealCommentImplCopyWithImpl<_$MealCommentImpl>(this, _$identity); @override Map toJson() { return _$$MealCommentImplToJson( this, ); } } abstract class _MealComment implements MealComment { factory _MealComment( {required final String comment, required final int typeNo}) = _$MealCommentImpl; factory _MealComment.fromJson(Map json) = _$MealCommentImpl.fromJson; @override String get comment; @override int get typeNo; /// Create a copy of MealComment /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) _$$MealCommentImplCopyWith<_$MealCommentImpl> get copyWith => throw _privateConstructorUsedError; } PortionComment _$PortionCommentFromJson(Map json) { return _PortionComment.fromJson(json); } /// @nodoc mixin _$PortionComment { @JsonKey(name: 'id') int get portionId => throw _privateConstructorUsedError; String get comment => throw _privateConstructorUsedError; /// Serializes this PortionComment to a JSON map. Map toJson() => throw _privateConstructorUsedError; /// Create a copy of PortionComment /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) $PortionCommentCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $PortionCommentCopyWith<$Res> { factory $PortionCommentCopyWith( PortionComment value, $Res Function(PortionComment) then) = _$PortionCommentCopyWithImpl<$Res, PortionComment>; @useResult $Res call({@JsonKey(name: 'id') int portionId, String comment}); } /// @nodoc class _$PortionCommentCopyWithImpl<$Res, $Val extends PortionComment> implements $PortionCommentCopyWith<$Res> { _$PortionCommentCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; // ignore: unused_field final $Res Function($Val) _then; /// Create a copy of PortionComment /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? portionId = null, Object? comment = null, }) { return _then(_value.copyWith( portionId: null == portionId ? _value.portionId : portionId // ignore: cast_nullable_to_non_nullable as int, comment: null == comment ? _value.comment : comment // ignore: cast_nullable_to_non_nullable as String, ) as $Val); } } /// @nodoc abstract class _$$PortionCommentImplCopyWith<$Res> implements $PortionCommentCopyWith<$Res> { factory _$$PortionCommentImplCopyWith(_$PortionCommentImpl value, $Res Function(_$PortionCommentImpl) then) = __$$PortionCommentImplCopyWithImpl<$Res>; @override @useResult $Res call({@JsonKey(name: 'id') int portionId, String comment}); } /// @nodoc class __$$PortionCommentImplCopyWithImpl<$Res> extends _$PortionCommentCopyWithImpl<$Res, _$PortionCommentImpl> implements _$$PortionCommentImplCopyWith<$Res> { __$$PortionCommentImplCopyWithImpl( _$PortionCommentImpl _value, $Res Function(_$PortionCommentImpl) _then) : super(_value, _then); /// Create a copy of PortionComment /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? portionId = null, Object? comment = null, }) { return _then(_$PortionCommentImpl( portionId: null == portionId ? _value.portionId : portionId // ignore: cast_nullable_to_non_nullable as int, comment: null == comment ? _value.comment : comment // ignore: cast_nullable_to_non_nullable as String, )); } } /// @nodoc @JsonSerializable() class _$PortionCommentImpl implements _PortionComment { _$PortionCommentImpl( {@JsonKey(name: 'id') required this.portionId, required this.comment}); factory _$PortionCommentImpl.fromJson(Map json) => _$$PortionCommentImplFromJson(json); @override @JsonKey(name: 'id') final int portionId; @override final String comment; @override String toString() { return 'PortionComment(portionId: $portionId, comment: $comment)'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$PortionCommentImpl && (identical(other.portionId, portionId) || other.portionId == portionId) && (identical(other.comment, comment) || other.comment == comment)); } @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, portionId, comment); /// Create a copy of PortionComment /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$PortionCommentImplCopyWith<_$PortionCommentImpl> get copyWith => __$$PortionCommentImplCopyWithImpl<_$PortionCommentImpl>( this, _$identity); @override Map toJson() { return _$$PortionCommentImplToJson( this, ); } } abstract class _PortionComment implements PortionComment { factory _PortionComment( {@JsonKey(name: 'id') required final int portionId, required final String comment}) = _$PortionCommentImpl; factory _PortionComment.fromJson(Map json) = _$PortionCommentImpl.fromJson; @override @JsonKey(name: 'id') int get portionId; @override String get comment; /// Create a copy of PortionComment /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) _$$PortionCommentImplCopyWith<_$PortionCommentImpl> get copyWith => throw _privateConstructorUsedError; }