// 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 'workout_set.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');

WorkoutSet _$WorkoutSetFromJson(Map<String, dynamic> json) {
  return _WorkoutSet.fromJson(json);
}

/// @nodoc
mixin _$WorkoutSet {
  int get setNumber => throw _privateConstructorUsedError;
  int get targetPercentage => throw _privateConstructorUsedError;
  double get targetWeightTotal => throw _privateConstructorUsedError;
  double get plateWeight => throw _privateConstructorUsedError;
  int get repsTarget => throw _privateConstructorUsedError;
  int get repsActual => throw _privateConstructorUsedError;
  bool get isAmrap => throw _privateConstructorUsedError;
  bool get completed => throw _privateConstructorUsedError;
  int? get rpe => throw _privateConstructorUsedError;

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

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

/// @nodoc
abstract class $WorkoutSetCopyWith<$Res> {
  factory $WorkoutSetCopyWith(
          WorkoutSet value, $Res Function(WorkoutSet) then) =
      _$WorkoutSetCopyWithImpl<$Res, WorkoutSet>;
  @useResult
  $Res call(
      {int setNumber,
      int targetPercentage,
      double targetWeightTotal,
      double plateWeight,
      int repsTarget,
      int repsActual,
      bool isAmrap,
      bool completed,
      int? rpe});
}

/// @nodoc
class _$WorkoutSetCopyWithImpl<$Res, $Val extends WorkoutSet>
    implements $WorkoutSetCopyWith<$Res> {
  _$WorkoutSetCopyWithImpl(this._value, this._then);

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

  /// Create a copy of WorkoutSet
  /// with the given fields replaced by the non-null parameter values.
  @pragma('vm:prefer-inline')
  @override
  $Res call({
    Object? setNumber = null,
    Object? targetPercentage = null,
    Object? targetWeightTotal = null,
    Object? plateWeight = null,
    Object? repsTarget = null,
    Object? repsActual = null,
    Object? isAmrap = null,
    Object? completed = null,
    Object? rpe = freezed,
  }) {
    return _then(_value.copyWith(
      setNumber: null == setNumber
          ? _value.setNumber
          : setNumber // ignore: cast_nullable_to_non_nullable
              as int,
      targetPercentage: null == targetPercentage
          ? _value.targetPercentage
          : targetPercentage // ignore: cast_nullable_to_non_nullable
              as int,
      targetWeightTotal: null == targetWeightTotal
          ? _value.targetWeightTotal
          : targetWeightTotal // ignore: cast_nullable_to_non_nullable
              as double,
      plateWeight: null == plateWeight
          ? _value.plateWeight
          : plateWeight // ignore: cast_nullable_to_non_nullable
              as double,
      repsTarget: null == repsTarget
          ? _value.repsTarget
          : repsTarget // ignore: cast_nullable_to_non_nullable
              as int,
      repsActual: null == repsActual
          ? _value.repsActual
          : repsActual // ignore: cast_nullable_to_non_nullable
              as int,
      isAmrap: null == isAmrap
          ? _value.isAmrap
          : isAmrap // ignore: cast_nullable_to_non_nullable
              as bool,
      completed: null == completed
          ? _value.completed
          : completed // ignore: cast_nullable_to_non_nullable
              as bool,
      rpe: freezed == rpe
          ? _value.rpe
          : rpe // ignore: cast_nullable_to_non_nullable
              as int?,
    ) as $Val);
  }
}

/// @nodoc
abstract class _$$WorkoutSetImplCopyWith<$Res>
    implements $WorkoutSetCopyWith<$Res> {
  factory _$$WorkoutSetImplCopyWith(
          _$WorkoutSetImpl value, $Res Function(_$WorkoutSetImpl) then) =
      __$$WorkoutSetImplCopyWithImpl<$Res>;
  @override
  @useResult
  $Res call(
      {int setNumber,
      int targetPercentage,
      double targetWeightTotal,
      double plateWeight,
      int repsTarget,
      int repsActual,
      bool isAmrap,
      bool completed,
      int? rpe});
}

/// @nodoc
class __$$WorkoutSetImplCopyWithImpl<$Res>
    extends _$WorkoutSetCopyWithImpl<$Res, _$WorkoutSetImpl>
    implements _$$WorkoutSetImplCopyWith<$Res> {
  __$$WorkoutSetImplCopyWithImpl(
      _$WorkoutSetImpl _value, $Res Function(_$WorkoutSetImpl) _then)
      : super(_value, _then);

  /// Create a copy of WorkoutSet
  /// with the given fields replaced by the non-null parameter values.
  @pragma('vm:prefer-inline')
  @override
  $Res call({
    Object? setNumber = null,
    Object? targetPercentage = null,
    Object? targetWeightTotal = null,
    Object? plateWeight = null,
    Object? repsTarget = null,
    Object? repsActual = null,
    Object? isAmrap = null,
    Object? completed = null,
    Object? rpe = freezed,
  }) {
    return _then(_$WorkoutSetImpl(
      setNumber: null == setNumber
          ? _value.setNumber
          : setNumber // ignore: cast_nullable_to_non_nullable
              as int,
      targetPercentage: null == targetPercentage
          ? _value.targetPercentage
          : targetPercentage // ignore: cast_nullable_to_non_nullable
              as int,
      targetWeightTotal: null == targetWeightTotal
          ? _value.targetWeightTotal
          : targetWeightTotal // ignore: cast_nullable_to_non_nullable
              as double,
      plateWeight: null == plateWeight
          ? _value.plateWeight
          : plateWeight // ignore: cast_nullable_to_non_nullable
              as double,
      repsTarget: null == repsTarget
          ? _value.repsTarget
          : repsTarget // ignore: cast_nullable_to_non_nullable
              as int,
      repsActual: null == repsActual
          ? _value.repsActual
          : repsActual // ignore: cast_nullable_to_non_nullable
              as int,
      isAmrap: null == isAmrap
          ? _value.isAmrap
          : isAmrap // ignore: cast_nullable_to_non_nullable
              as bool,
      completed: null == completed
          ? _value.completed
          : completed // ignore: cast_nullable_to_non_nullable
              as bool,
      rpe: freezed == rpe
          ? _value.rpe
          : rpe // ignore: cast_nullable_to_non_nullable
              as int?,
    ));
  }
}

/// @nodoc
@JsonSerializable()
class _$WorkoutSetImpl implements _WorkoutSet {
  const _$WorkoutSetImpl(
      {this.setNumber = 1,
      this.targetPercentage = 0,
      this.targetWeightTotal = 0.0,
      this.plateWeight = 0.0,
      this.repsTarget = 0,
      this.repsActual = 0,
      this.isAmrap = false,
      this.completed = false,
      this.rpe});

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

  @override
  @JsonKey()
  final int setNumber;
  @override
  @JsonKey()
  final int targetPercentage;
  @override
  @JsonKey()
  final double targetWeightTotal;
  @override
  @JsonKey()
  final double plateWeight;
  @override
  @JsonKey()
  final int repsTarget;
  @override
  @JsonKey()
  final int repsActual;
  @override
  @JsonKey()
  final bool isAmrap;
  @override
  @JsonKey()
  final bool completed;
  @override
  final int? rpe;

  @override
  String toString() {
    return 'WorkoutSet(setNumber: $setNumber, targetPercentage: $targetPercentage, targetWeightTotal: $targetWeightTotal, plateWeight: $plateWeight, repsTarget: $repsTarget, repsActual: $repsActual, isAmrap: $isAmrap, completed: $completed, rpe: $rpe)';
  }

  @override
  bool operator ==(Object other) {
    return identical(this, other) ||
        (other.runtimeType == runtimeType &&
            other is _$WorkoutSetImpl &&
            (identical(other.setNumber, setNumber) ||
                other.setNumber == setNumber) &&
            (identical(other.targetPercentage, targetPercentage) ||
                other.targetPercentage == targetPercentage) &&
            (identical(other.targetWeightTotal, targetWeightTotal) ||
                other.targetWeightTotal == targetWeightTotal) &&
            (identical(other.plateWeight, plateWeight) ||
                other.plateWeight == plateWeight) &&
            (identical(other.repsTarget, repsTarget) ||
                other.repsTarget == repsTarget) &&
            (identical(other.repsActual, repsActual) ||
                other.repsActual == repsActual) &&
            (identical(other.isAmrap, isAmrap) || other.isAmrap == isAmrap) &&
            (identical(other.completed, completed) ||
                other.completed == completed) &&
            (identical(other.rpe, rpe) || other.rpe == rpe));
  }

  @JsonKey(includeFromJson: false, includeToJson: false)
  @override
  int get hashCode => Object.hash(
      runtimeType,
      setNumber,
      targetPercentage,
      targetWeightTotal,
      plateWeight,
      repsTarget,
      repsActual,
      isAmrap,
      completed,
      rpe);

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

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

abstract class _WorkoutSet implements WorkoutSet {
  const factory _WorkoutSet(
      {final int setNumber,
      final int targetPercentage,
      final double targetWeightTotal,
      final double plateWeight,
      final int repsTarget,
      final int repsActual,
      final bool isAmrap,
      final bool completed,
      final int? rpe}) = _$WorkoutSetImpl;

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

  @override
  int get setNumber;
  @override
  int get targetPercentage;
  @override
  double get targetWeightTotal;
  @override
  double get plateWeight;
  @override
  int get repsTarget;
  @override
  int get repsActual;
  @override
  bool get isAmrap;
  @override
  bool get completed;
  @override
  int? get rpe;

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