// 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 'ico_launch_plan_model.dart';

// **************************************************************************
// FreezedGenerator
// **************************************************************************

T _$identity<T>(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');

IcoLaunchPlanModel _$IcoLaunchPlanModelFromJson(Map<String, dynamic> json) {
  return _IcoLaunchPlanModel.fromJson(json);
}

/// @nodoc
mixin _$IcoLaunchPlanModel {
  String get id => throw _privateConstructorUsedError;
  String get name => throw _privateConstructorUsedError;
  String get description => throw _privateConstructorUsedError;
  double get price => throw _privateConstructorUsedError;
  int get duration => throw _privateConstructorUsedError;
  List<String> get features => throw _privateConstructorUsedError;
  bool get isActive => throw _privateConstructorUsedError;
  bool get isPopular => throw _privateConstructorUsedError;
  double? get discount => throw _privateConstructorUsedError;
  int? get maxOfferings => throw _privateConstructorUsedError;

  /// Serializes this IcoLaunchPlanModel to a JSON map.
  Map<String, dynamic> toJson() => throw _privateConstructorUsedError;

  /// Create a copy of IcoLaunchPlanModel
  /// with the given fields replaced by the non-null parameter values.
  @JsonKey(includeFromJson: false, includeToJson: false)
  $IcoLaunchPlanModelCopyWith<IcoLaunchPlanModel> get copyWith =>
      throw _privateConstructorUsedError;
}

/// @nodoc
abstract class $IcoLaunchPlanModelCopyWith<$Res> {
  factory $IcoLaunchPlanModelCopyWith(
          IcoLaunchPlanModel value, $Res Function(IcoLaunchPlanModel) then) =
      _$IcoLaunchPlanModelCopyWithImpl<$Res, IcoLaunchPlanModel>;
  @useResult
  $Res call(
      {String id,
      String name,
      String description,
      double price,
      int duration,
      List<String> features,
      bool isActive,
      bool isPopular,
      double? discount,
      int? maxOfferings});
}

/// @nodoc
class _$IcoLaunchPlanModelCopyWithImpl<$Res, $Val extends IcoLaunchPlanModel>
    implements $IcoLaunchPlanModelCopyWith<$Res> {
  _$IcoLaunchPlanModelCopyWithImpl(this._value, this._then);

  // ignore: unused_field
  final $Val _value;
  // ignore: unused_field
  final $Res Function($Val) _then;

  /// Create a copy of IcoLaunchPlanModel
  /// with the given fields replaced by the non-null parameter values.
  @pragma('vm:prefer-inline')
  @override
  $Res call({
    Object? id = null,
    Object? name = null,
    Object? description = null,
    Object? price = null,
    Object? duration = null,
    Object? features = null,
    Object? isActive = null,
    Object? isPopular = null,
    Object? discount = freezed,
    Object? maxOfferings = freezed,
  }) {
    return _then(_value.copyWith(
      id: null == id
          ? _value.id
          : id // ignore: cast_nullable_to_non_nullable
              as String,
      name: null == name
          ? _value.name
          : name // ignore: cast_nullable_to_non_nullable
              as String,
      description: null == description
          ? _value.description
          : description // ignore: cast_nullable_to_non_nullable
              as String,
      price: null == price
          ? _value.price
          : price // ignore: cast_nullable_to_non_nullable
              as double,
      duration: null == duration
          ? _value.duration
          : duration // ignore: cast_nullable_to_non_nullable
              as int,
      features: null == features
          ? _value.features
          : features // ignore: cast_nullable_to_non_nullable
              as List<String>,
      isActive: null == isActive
          ? _value.isActive
          : isActive // ignore: cast_nullable_to_non_nullable
              as bool,
      isPopular: null == isPopular
          ? _value.isPopular
          : isPopular // ignore: cast_nullable_to_non_nullable
              as bool,
      discount: freezed == discount
          ? _value.discount
          : discount // ignore: cast_nullable_to_non_nullable
              as double?,
      maxOfferings: freezed == maxOfferings
          ? _value.maxOfferings
          : maxOfferings // ignore: cast_nullable_to_non_nullable
              as int?,
    ) as $Val);
  }
}

/// @nodoc
abstract class _$$IcoLaunchPlanModelImplCopyWith<$Res>
    implements $IcoLaunchPlanModelCopyWith<$Res> {
  factory _$$IcoLaunchPlanModelImplCopyWith(_$IcoLaunchPlanModelImpl value,
          $Res Function(_$IcoLaunchPlanModelImpl) then) =
      __$$IcoLaunchPlanModelImplCopyWithImpl<$Res>;
  @override
  @useResult
  $Res call(
      {String id,
      String name,
      String description,
      double price,
      int duration,
      List<String> features,
      bool isActive,
      bool isPopular,
      double? discount,
      int? maxOfferings});
}

/// @nodoc
class __$$IcoLaunchPlanModelImplCopyWithImpl<$Res>
    extends _$IcoLaunchPlanModelCopyWithImpl<$Res, _$IcoLaunchPlanModelImpl>
    implements _$$IcoLaunchPlanModelImplCopyWith<$Res> {
  __$$IcoLaunchPlanModelImplCopyWithImpl(_$IcoLaunchPlanModelImpl _value,
      $Res Function(_$IcoLaunchPlanModelImpl) _then)
      : super(_value, _then);

  /// Create a copy of IcoLaunchPlanModel
  /// with the given fields replaced by the non-null parameter values.
  @pragma('vm:prefer-inline')
  @override
  $Res call({
    Object? id = null,
    Object? name = null,
    Object? description = null,
    Object? price = null,
    Object? duration = null,
    Object? features = null,
    Object? isActive = null,
    Object? isPopular = null,
    Object? discount = freezed,
    Object? maxOfferings = freezed,
  }) {
    return _then(_$IcoLaunchPlanModelImpl(
      id: null == id
          ? _value.id
          : id // ignore: cast_nullable_to_non_nullable
              as String,
      name: null == name
          ? _value.name
          : name // ignore: cast_nullable_to_non_nullable
              as String,
      description: null == description
          ? _value.description
          : description // ignore: cast_nullable_to_non_nullable
              as String,
      price: null == price
          ? _value.price
          : price // ignore: cast_nullable_to_non_nullable
              as double,
      duration: null == duration
          ? _value.duration
          : duration // ignore: cast_nullable_to_non_nullable
              as int,
      features: null == features
          ? _value._features
          : features // ignore: cast_nullable_to_non_nullable
              as List<String>,
      isActive: null == isActive
          ? _value.isActive
          : isActive // ignore: cast_nullable_to_non_nullable
              as bool,
      isPopular: null == isPopular
          ? _value.isPopular
          : isPopular // ignore: cast_nullable_to_non_nullable
              as bool,
      discount: freezed == discount
          ? _value.discount
          : discount // ignore: cast_nullable_to_non_nullable
              as double?,
      maxOfferings: freezed == maxOfferings
          ? _value.maxOfferings
          : maxOfferings // ignore: cast_nullable_to_non_nullable
              as int?,
    ));
  }
}

/// @nodoc
@JsonSerializable()
class _$IcoLaunchPlanModelImpl extends _IcoLaunchPlanModel {
  const _$IcoLaunchPlanModelImpl(
      {required this.id,
      required this.name,
      required this.description,
      required this.price,
      required this.duration,
      required final List<String> features,
      this.isActive = true,
      this.isPopular = false,
      this.discount,
      this.maxOfferings})
      : _features = features,
        super._();

  factory _$IcoLaunchPlanModelImpl.fromJson(Map<String, dynamic> json) =>
      _$$IcoLaunchPlanModelImplFromJson(json);

  @override
  final String id;
  @override
  final String name;
  @override
  final String description;
  @override
  final double price;
  @override
  final int duration;
  final List<String> _features;
  @override
  List<String> get features {
    if (_features is EqualUnmodifiableListView) return _features;
    // ignore: implicit_dynamic_type
    return EqualUnmodifiableListView(_features);
  }

  @override
  @JsonKey()
  final bool isActive;
  @override
  @JsonKey()
  final bool isPopular;
  @override
  final double? discount;
  @override
  final int? maxOfferings;

  @override
  String toString() {
    return 'IcoLaunchPlanModel(id: $id, name: $name, description: $description, price: $price, duration: $duration, features: $features, isActive: $isActive, isPopular: $isPopular, discount: $discount, maxOfferings: $maxOfferings)';
  }

  @override
  bool operator ==(Object other) {
    return identical(this, other) ||
        (other.runtimeType == runtimeType &&
            other is _$IcoLaunchPlanModelImpl &&
            (identical(other.id, id) || other.id == id) &&
            (identical(other.name, name) || other.name == name) &&
            (identical(other.description, description) ||
                other.description == description) &&
            (identical(other.price, price) || other.price == price) &&
            (identical(other.duration, duration) ||
                other.duration == duration) &&
            const DeepCollectionEquality().equals(other._features, _features) &&
            (identical(other.isActive, isActive) ||
                other.isActive == isActive) &&
            (identical(other.isPopular, isPopular) ||
                other.isPopular == isPopular) &&
            (identical(other.discount, discount) ||
                other.discount == discount) &&
            (identical(other.maxOfferings, maxOfferings) ||
                other.maxOfferings == maxOfferings));
  }

  @JsonKey(includeFromJson: false, includeToJson: false)
  @override
  int get hashCode => Object.hash(
      runtimeType,
      id,
      name,
      description,
      price,
      duration,
      const DeepCollectionEquality().hash(_features),
      isActive,
      isPopular,
      discount,
      maxOfferings);

  /// Create a copy of IcoLaunchPlanModel
  /// with the given fields replaced by the non-null parameter values.
  @JsonKey(includeFromJson: false, includeToJson: false)
  @override
  @pragma('vm:prefer-inline')
  _$$IcoLaunchPlanModelImplCopyWith<_$IcoLaunchPlanModelImpl> get copyWith =>
      __$$IcoLaunchPlanModelImplCopyWithImpl<_$IcoLaunchPlanModelImpl>(
          this, _$identity);

  @override
  Map<String, dynamic> toJson() {
    return _$$IcoLaunchPlanModelImplToJson(
      this,
    );
  }
}

abstract class _IcoLaunchPlanModel extends IcoLaunchPlanModel {
  const factory _IcoLaunchPlanModel(
      {required final String id,
      required final String name,
      required final String description,
      required final double price,
      required final int duration,
      required final List<String> features,
      final bool isActive,
      final bool isPopular,
      final double? discount,
      final int? maxOfferings}) = _$IcoLaunchPlanModelImpl;
  const _IcoLaunchPlanModel._() : super._();

  factory _IcoLaunchPlanModel.fromJson(Map<String, dynamic> json) =
      _$IcoLaunchPlanModelImpl.fromJson;

  @override
  String get id;
  @override
  String get name;
  @override
  String get description;
  @override
  double get price;
  @override
  int get duration;
  @override
  List<String> get features;
  @override
  bool get isActive;
  @override
  bool get isPopular;
  @override
  double? get discount;
  @override
  int? get maxOfferings;

  /// Create a copy of IcoLaunchPlanModel
  /// with the given fields replaced by the non-null parameter values.
  @override
  @JsonKey(includeFromJson: false, includeToJson: false)
  _$$IcoLaunchPlanModelImplCopyWith<_$IcoLaunchPlanModelImpl> get copyWith =>
      throw _privateConstructorUsedError;
}
