// 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 'create_plan_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'); /// @nodoc mixin _$CreatePlanModel { String? get name => throw _privateConstructorUsedError; String? get details => throw _privateConstructorUsedError; String? get state => throw _privateConstructorUsedError; int? get duration => throw _privateConstructorUsedError; List get type => throw _privateConstructorUsedError; XFile? get image => throw _privateConstructorUsedError; List get options => throw _privateConstructorUsedError; /// Create a copy of CreatePlanModel /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) $CreatePlanModelCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $CreatePlanModelCopyWith<$Res> { factory $CreatePlanModelCopyWith( CreatePlanModel value, $Res Function(CreatePlanModel) then) = _$CreatePlanModelCopyWithImpl<$Res, CreatePlanModel>; @useResult $Res call( {String? name, String? details, String? state, int? duration, List type, XFile? image, List options}); } /// @nodoc class _$CreatePlanModelCopyWithImpl<$Res, $Val extends CreatePlanModel> implements $CreatePlanModelCopyWith<$Res> { _$CreatePlanModelCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; // ignore: unused_field final $Res Function($Val) _then; /// Create a copy of CreatePlanModel /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? name = freezed, Object? details = freezed, Object? state = freezed, Object? duration = freezed, Object? type = null, Object? image = freezed, Object? options = null, }) { return _then(_value.copyWith( name: freezed == name ? _value.name : name // ignore: cast_nullable_to_non_nullable as String?, details: freezed == details ? _value.details : details // ignore: cast_nullable_to_non_nullable as String?, state: freezed == state ? _value.state : state // ignore: cast_nullable_to_non_nullable as String?, duration: freezed == duration ? _value.duration : duration // ignore: cast_nullable_to_non_nullable as int?, type: null == type ? _value.type : type // ignore: cast_nullable_to_non_nullable as List, image: freezed == image ? _value.image : image // ignore: cast_nullable_to_non_nullable as XFile?, options: null == options ? _value.options : options // ignore: cast_nullable_to_non_nullable as List, ) as $Val); } } /// @nodoc abstract class _$$CreatePlanModelImplCopyWith<$Res> implements $CreatePlanModelCopyWith<$Res> { factory _$$CreatePlanModelImplCopyWith(_$CreatePlanModelImpl value, $Res Function(_$CreatePlanModelImpl) then) = __$$CreatePlanModelImplCopyWithImpl<$Res>; @override @useResult $Res call( {String? name, String? details, String? state, int? duration, List type, XFile? image, List options}); } /// @nodoc class __$$CreatePlanModelImplCopyWithImpl<$Res> extends _$CreatePlanModelCopyWithImpl<$Res, _$CreatePlanModelImpl> implements _$$CreatePlanModelImplCopyWith<$Res> { __$$CreatePlanModelImplCopyWithImpl( _$CreatePlanModelImpl _value, $Res Function(_$CreatePlanModelImpl) _then) : super(_value, _then); /// Create a copy of CreatePlanModel /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? name = freezed, Object? details = freezed, Object? state = freezed, Object? duration = freezed, Object? type = null, Object? image = freezed, Object? options = null, }) { return _then(_$CreatePlanModelImpl( name: freezed == name ? _value.name : name // ignore: cast_nullable_to_non_nullable as String?, details: freezed == details ? _value.details : details // ignore: cast_nullable_to_non_nullable as String?, state: freezed == state ? _value.state : state // ignore: cast_nullable_to_non_nullable as String?, duration: freezed == duration ? _value.duration : duration // ignore: cast_nullable_to_non_nullable as int?, type: null == type ? _value._type : type // ignore: cast_nullable_to_non_nullable as List, image: freezed == image ? _value.image : image // ignore: cast_nullable_to_non_nullable as XFile?, options: null == options ? _value._options : options // ignore: cast_nullable_to_non_nullable as List, )); } } /// @nodoc class _$CreatePlanModelImpl extends _CreatePlanModel { const _$CreatePlanModelImpl( {this.name, this.details, this.state, this.duration, required final List type, this.image, required final List options}) : _type = type, _options = options, super._(); @override final String? name; @override final String? details; @override final String? state; @override final int? duration; final List _type; @override List get type { if (_type is EqualUnmodifiableListView) return _type; // ignore: implicit_dynamic_type return EqualUnmodifiableListView(_type); } @override final XFile? image; final List _options; @override List get options { if (_options is EqualUnmodifiableListView) return _options; // ignore: implicit_dynamic_type return EqualUnmodifiableListView(_options); } @override String toString() { return 'CreatePlanModel(name: $name, details: $details, state: $state, duration: $duration, type: $type, image: $image, options: $options)'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$CreatePlanModelImpl && (identical(other.name, name) || other.name == name) && (identical(other.details, details) || other.details == details) && (identical(other.state, state) || other.state == state) && (identical(other.duration, duration) || other.duration == duration) && const DeepCollectionEquality().equals(other._type, _type) && (identical(other.image, image) || other.image == image) && const DeepCollectionEquality().equals(other._options, _options)); } @override int get hashCode => Object.hash( runtimeType, name, details, state, duration, const DeepCollectionEquality().hash(_type), image, const DeepCollectionEquality().hash(_options)); /// Create a copy of CreatePlanModel /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$CreatePlanModelImplCopyWith<_$CreatePlanModelImpl> get copyWith => __$$CreatePlanModelImplCopyWithImpl<_$CreatePlanModelImpl>( this, _$identity); } abstract class _CreatePlanModel extends CreatePlanModel { const factory _CreatePlanModel( {final String? name, final String? details, final String? state, final int? duration, required final List type, final XFile? image, required final List options}) = _$CreatePlanModelImpl; const _CreatePlanModel._() : super._(); @override String? get name; @override String? get details; @override String? get state; @override int? get duration; @override List get type; @override XFile? get image; @override List get options; /// Create a copy of CreatePlanModel /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) _$$CreatePlanModelImplCopyWith<_$CreatePlanModelImpl> get copyWith => throw _privateConstructorUsedError; }