// GENERATED CODE - DO NOT MODIFY BY HAND
// coverage:ignore-file
// 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 'activity_meter_view_state.dart';

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

// dart format off
T _$identity<T>(T value) => value;
/// @nodoc
mixin _$ActivityMeterViewState {

 DeviceEntity? get selectedDevice; DateTime? get selectedDate; bool get enabled; List<ActivityEntity> get activityList; List<ActivityEntity> get weekActivity; ActivityEntity? get selectedActivity; double get stepLength; double get weight; bool get isLoading; String get errorMessage;
/// Create a copy of ActivityMeterViewState
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
$ActivityMeterViewStateCopyWith<ActivityMeterViewState> get copyWith => _$ActivityMeterViewStateCopyWithImpl<ActivityMeterViewState>(this as ActivityMeterViewState, _$identity);



@override
bool operator ==(Object other) {
  return identical(this, other) || (other.runtimeType == runtimeType&&other is ActivityMeterViewState&&(identical(other.selectedDevice, selectedDevice) || other.selectedDevice == selectedDevice)&&(identical(other.selectedDate, selectedDate) || other.selectedDate == selectedDate)&&(identical(other.enabled, enabled) || other.enabled == enabled)&&const DeepCollectionEquality().equals(other.activityList, activityList)&&const DeepCollectionEquality().equals(other.weekActivity, weekActivity)&&(identical(other.selectedActivity, selectedActivity) || other.selectedActivity == selectedActivity)&&(identical(other.stepLength, stepLength) || other.stepLength == stepLength)&&(identical(other.weight, weight) || other.weight == weight)&&(identical(other.isLoading, isLoading) || other.isLoading == isLoading)&&(identical(other.errorMessage, errorMessage) || other.errorMessage == errorMessage));
}


@override
int get hashCode => Object.hash(runtimeType,selectedDevice,selectedDate,enabled,const DeepCollectionEquality().hash(activityList),const DeepCollectionEquality().hash(weekActivity),selectedActivity,stepLength,weight,isLoading,errorMessage);

@override
String toString() {
  return 'ActivityMeterViewState(selectedDevice: $selectedDevice, selectedDate: $selectedDate, enabled: $enabled, activityList: $activityList, weekActivity: $weekActivity, selectedActivity: $selectedActivity, stepLength: $stepLength, weight: $weight, isLoading: $isLoading, errorMessage: $errorMessage)';
}


}

/// @nodoc
abstract mixin class $ActivityMeterViewStateCopyWith<$Res>  {
  factory $ActivityMeterViewStateCopyWith(ActivityMeterViewState value, $Res Function(ActivityMeterViewState) _then) = _$ActivityMeterViewStateCopyWithImpl;
@useResult
$Res call({
 DeviceEntity? selectedDevice, DateTime? selectedDate, bool enabled, List<ActivityEntity> activityList, List<ActivityEntity> weekActivity, ActivityEntity? selectedActivity, double stepLength, double weight, bool isLoading, String errorMessage
});


$DeviceEntityCopyWith<$Res>? get selectedDevice;$ActivityEntityCopyWith<$Res>? get selectedActivity;

}
/// @nodoc
class _$ActivityMeterViewStateCopyWithImpl<$Res>
    implements $ActivityMeterViewStateCopyWith<$Res> {
  _$ActivityMeterViewStateCopyWithImpl(this._self, this._then);

  final ActivityMeterViewState _self;
  final $Res Function(ActivityMeterViewState) _then;

/// Create a copy of ActivityMeterViewState
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline') @override $Res call({Object? selectedDevice = freezed,Object? selectedDate = freezed,Object? enabled = null,Object? activityList = null,Object? weekActivity = null,Object? selectedActivity = freezed,Object? stepLength = null,Object? weight = null,Object? isLoading = null,Object? errorMessage = null,}) {
  return _then(_self.copyWith(
selectedDevice: freezed == selectedDevice ? _self.selectedDevice : selectedDevice // ignore: cast_nullable_to_non_nullable
as DeviceEntity?,selectedDate: freezed == selectedDate ? _self.selectedDate : selectedDate // ignore: cast_nullable_to_non_nullable
as DateTime?,enabled: null == enabled ? _self.enabled : enabled // ignore: cast_nullable_to_non_nullable
as bool,activityList: null == activityList ? _self.activityList : activityList // ignore: cast_nullable_to_non_nullable
as List<ActivityEntity>,weekActivity: null == weekActivity ? _self.weekActivity : weekActivity // ignore: cast_nullable_to_non_nullable
as List<ActivityEntity>,selectedActivity: freezed == selectedActivity ? _self.selectedActivity : selectedActivity // ignore: cast_nullable_to_non_nullable
as ActivityEntity?,stepLength: null == stepLength ? _self.stepLength : stepLength // ignore: cast_nullable_to_non_nullable
as double,weight: null == weight ? _self.weight : weight // ignore: cast_nullable_to_non_nullable
as double,isLoading: null == isLoading ? _self.isLoading : isLoading // ignore: cast_nullable_to_non_nullable
as bool,errorMessage: null == errorMessage ? _self.errorMessage : errorMessage // ignore: cast_nullable_to_non_nullable
as String,
  ));
}
/// Create a copy of ActivityMeterViewState
/// with the given fields replaced by the non-null parameter values.
@override
@pragma('vm:prefer-inline')
$DeviceEntityCopyWith<$Res>? get selectedDevice {
    if (_self.selectedDevice == null) {
    return null;
  }

  return $DeviceEntityCopyWith<$Res>(_self.selectedDevice!, (value) {
    return _then(_self.copyWith(selectedDevice: value));
  });
}/// Create a copy of ActivityMeterViewState
/// with the given fields replaced by the non-null parameter values.
@override
@pragma('vm:prefer-inline')
$ActivityEntityCopyWith<$Res>? get selectedActivity {
    if (_self.selectedActivity == null) {
    return null;
  }

  return $ActivityEntityCopyWith<$Res>(_self.selectedActivity!, (value) {
    return _then(_self.copyWith(selectedActivity: value));
  });
}
}


/// Adds pattern-matching-related methods to [ActivityMeterViewState].
extension ActivityMeterViewStatePatterns on ActivityMeterViewState {
/// A variant of `map` that fallback to returning `orElse`.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case final Subclass value:
///     return ...;
///   case _:
///     return orElse();
/// }
/// ```

@optionalTypeArgs TResult maybeMap<TResult extends Object?>(TResult Function( _ActivityMeterViewState value)?  $default,{required TResult orElse(),}){
final _that = this;
switch (_that) {
case _ActivityMeterViewState() when $default != null:
return $default(_that);case _:
  return orElse();

}
}
/// A `switch`-like method, using callbacks.
///
/// Callbacks receives the raw object, upcasted.
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case final Subclass value:
///     return ...;
///   case final Subclass2 value:
///     return ...;
/// }
/// ```

@optionalTypeArgs TResult map<TResult extends Object?>(TResult Function( _ActivityMeterViewState value)  $default,){
final _that = this;
switch (_that) {
case _ActivityMeterViewState():
return $default(_that);case _:
  throw StateError('Unexpected subclass');

}
}
/// A variant of `map` that fallback to returning `null`.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case final Subclass value:
///     return ...;
///   case _:
///     return null;
/// }
/// ```

@optionalTypeArgs TResult? mapOrNull<TResult extends Object?>(TResult? Function( _ActivityMeterViewState value)?  $default,){
final _that = this;
switch (_that) {
case _ActivityMeterViewState() when $default != null:
return $default(_that);case _:
  return null;

}
}
/// A variant of `when` that fallback to an `orElse` callback.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case Subclass(:final field):
///     return ...;
///   case _:
///     return orElse();
/// }
/// ```

@optionalTypeArgs TResult maybeWhen<TResult extends Object?>(TResult Function( DeviceEntity? selectedDevice,  DateTime? selectedDate,  bool enabled,  List<ActivityEntity> activityList,  List<ActivityEntity> weekActivity,  ActivityEntity? selectedActivity,  double stepLength,  double weight,  bool isLoading,  String errorMessage)?  $default,{required TResult orElse(),}) {final _that = this;
switch (_that) {
case _ActivityMeterViewState() when $default != null:
return $default(_that.selectedDevice,_that.selectedDate,_that.enabled,_that.activityList,_that.weekActivity,_that.selectedActivity,_that.stepLength,_that.weight,_that.isLoading,_that.errorMessage);case _:
  return orElse();

}
}
/// A `switch`-like method, using callbacks.
///
/// As opposed to `map`, this offers destructuring.
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case Subclass(:final field):
///     return ...;
///   case Subclass2(:final field2):
///     return ...;
/// }
/// ```

@optionalTypeArgs TResult when<TResult extends Object?>(TResult Function( DeviceEntity? selectedDevice,  DateTime? selectedDate,  bool enabled,  List<ActivityEntity> activityList,  List<ActivityEntity> weekActivity,  ActivityEntity? selectedActivity,  double stepLength,  double weight,  bool isLoading,  String errorMessage)  $default,) {final _that = this;
switch (_that) {
case _ActivityMeterViewState():
return $default(_that.selectedDevice,_that.selectedDate,_that.enabled,_that.activityList,_that.weekActivity,_that.selectedActivity,_that.stepLength,_that.weight,_that.isLoading,_that.errorMessage);case _:
  throw StateError('Unexpected subclass');

}
}
/// A variant of `when` that fallback to returning `null`
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case Subclass(:final field):
///     return ...;
///   case _:
///     return null;
/// }
/// ```

@optionalTypeArgs TResult? whenOrNull<TResult extends Object?>(TResult? Function( DeviceEntity? selectedDevice,  DateTime? selectedDate,  bool enabled,  List<ActivityEntity> activityList,  List<ActivityEntity> weekActivity,  ActivityEntity? selectedActivity,  double stepLength,  double weight,  bool isLoading,  String errorMessage)?  $default,) {final _that = this;
switch (_that) {
case _ActivityMeterViewState() when $default != null:
return $default(_that.selectedDevice,_that.selectedDate,_that.enabled,_that.activityList,_that.weekActivity,_that.selectedActivity,_that.stepLength,_that.weight,_that.isLoading,_that.errorMessage);case _:
  return null;

}
}

}

/// @nodoc


class _ActivityMeterViewState implements ActivityMeterViewState {
  const _ActivityMeterViewState({this.selectedDevice, this.selectedDate, this.enabled = false, final  List<ActivityEntity> activityList = const [], final  List<ActivityEntity> weekActivity = const [], this.selectedActivity, this.stepLength = 0, this.weight = 0, this.isLoading = true, this.errorMessage = ''}): _activityList = activityList,_weekActivity = weekActivity;
  

@override final  DeviceEntity? selectedDevice;
@override final  DateTime? selectedDate;
@override@JsonKey() final  bool enabled;
 final  List<ActivityEntity> _activityList;
@override@JsonKey() List<ActivityEntity> get activityList {
  if (_activityList is EqualUnmodifiableListView) return _activityList;
  // ignore: implicit_dynamic_type
  return EqualUnmodifiableListView(_activityList);
}

 final  List<ActivityEntity> _weekActivity;
@override@JsonKey() List<ActivityEntity> get weekActivity {
  if (_weekActivity is EqualUnmodifiableListView) return _weekActivity;
  // ignore: implicit_dynamic_type
  return EqualUnmodifiableListView(_weekActivity);
}

@override final  ActivityEntity? selectedActivity;
@override@JsonKey() final  double stepLength;
@override@JsonKey() final  double weight;
@override@JsonKey() final  bool isLoading;
@override@JsonKey() final  String errorMessage;

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



@override
bool operator ==(Object other) {
  return identical(this, other) || (other.runtimeType == runtimeType&&other is _ActivityMeterViewState&&(identical(other.selectedDevice, selectedDevice) || other.selectedDevice == selectedDevice)&&(identical(other.selectedDate, selectedDate) || other.selectedDate == selectedDate)&&(identical(other.enabled, enabled) || other.enabled == enabled)&&const DeepCollectionEquality().equals(other._activityList, _activityList)&&const DeepCollectionEquality().equals(other._weekActivity, _weekActivity)&&(identical(other.selectedActivity, selectedActivity) || other.selectedActivity == selectedActivity)&&(identical(other.stepLength, stepLength) || other.stepLength == stepLength)&&(identical(other.weight, weight) || other.weight == weight)&&(identical(other.isLoading, isLoading) || other.isLoading == isLoading)&&(identical(other.errorMessage, errorMessage) || other.errorMessage == errorMessage));
}


@override
int get hashCode => Object.hash(runtimeType,selectedDevice,selectedDate,enabled,const DeepCollectionEquality().hash(_activityList),const DeepCollectionEquality().hash(_weekActivity),selectedActivity,stepLength,weight,isLoading,errorMessage);

@override
String toString() {
  return 'ActivityMeterViewState(selectedDevice: $selectedDevice, selectedDate: $selectedDate, enabled: $enabled, activityList: $activityList, weekActivity: $weekActivity, selectedActivity: $selectedActivity, stepLength: $stepLength, weight: $weight, isLoading: $isLoading, errorMessage: $errorMessage)';
}


}

/// @nodoc
abstract mixin class _$ActivityMeterViewStateCopyWith<$Res> implements $ActivityMeterViewStateCopyWith<$Res> {
  factory _$ActivityMeterViewStateCopyWith(_ActivityMeterViewState value, $Res Function(_ActivityMeterViewState) _then) = __$ActivityMeterViewStateCopyWithImpl;
@override @useResult
$Res call({
 DeviceEntity? selectedDevice, DateTime? selectedDate, bool enabled, List<ActivityEntity> activityList, List<ActivityEntity> weekActivity, ActivityEntity? selectedActivity, double stepLength, double weight, bool isLoading, String errorMessage
});


@override $DeviceEntityCopyWith<$Res>? get selectedDevice;@override $ActivityEntityCopyWith<$Res>? get selectedActivity;

}
/// @nodoc
class __$ActivityMeterViewStateCopyWithImpl<$Res>
    implements _$ActivityMeterViewStateCopyWith<$Res> {
  __$ActivityMeterViewStateCopyWithImpl(this._self, this._then);

  final _ActivityMeterViewState _self;
  final $Res Function(_ActivityMeterViewState) _then;

/// Create a copy of ActivityMeterViewState
/// with the given fields replaced by the non-null parameter values.
@override @pragma('vm:prefer-inline') $Res call({Object? selectedDevice = freezed,Object? selectedDate = freezed,Object? enabled = null,Object? activityList = null,Object? weekActivity = null,Object? selectedActivity = freezed,Object? stepLength = null,Object? weight = null,Object? isLoading = null,Object? errorMessage = null,}) {
  return _then(_ActivityMeterViewState(
selectedDevice: freezed == selectedDevice ? _self.selectedDevice : selectedDevice // ignore: cast_nullable_to_non_nullable
as DeviceEntity?,selectedDate: freezed == selectedDate ? _self.selectedDate : selectedDate // ignore: cast_nullable_to_non_nullable
as DateTime?,enabled: null == enabled ? _self.enabled : enabled // ignore: cast_nullable_to_non_nullable
as bool,activityList: null == activityList ? _self._activityList : activityList // ignore: cast_nullable_to_non_nullable
as List<ActivityEntity>,weekActivity: null == weekActivity ? _self._weekActivity : weekActivity // ignore: cast_nullable_to_non_nullable
as List<ActivityEntity>,selectedActivity: freezed == selectedActivity ? _self.selectedActivity : selectedActivity // ignore: cast_nullable_to_non_nullable
as ActivityEntity?,stepLength: null == stepLength ? _self.stepLength : stepLength // ignore: cast_nullable_to_non_nullable
as double,weight: null == weight ? _self.weight : weight // ignore: cast_nullable_to_non_nullable
as double,isLoading: null == isLoading ? _self.isLoading : isLoading // ignore: cast_nullable_to_non_nullable
as bool,errorMessage: null == errorMessage ? _self.errorMessage : errorMessage // ignore: cast_nullable_to_non_nullable
as String,
  ));
}

/// Create a copy of ActivityMeterViewState
/// with the given fields replaced by the non-null parameter values.
@override
@pragma('vm:prefer-inline')
$DeviceEntityCopyWith<$Res>? get selectedDevice {
    if (_self.selectedDevice == null) {
    return null;
  }

  return $DeviceEntityCopyWith<$Res>(_self.selectedDevice!, (value) {
    return _then(_self.copyWith(selectedDevice: value));
  });
}/// Create a copy of ActivityMeterViewState
/// with the given fields replaced by the non-null parameter values.
@override
@pragma('vm:prefer-inline')
$ActivityEntityCopyWith<$Res>? get selectedActivity {
    if (_self.selectedActivity == null) {
    return null;
  }

  return $ActivityEntityCopyWith<$Res>(_self.selectedActivity!, (value) {
    return _then(_self.copyWith(selectedActivity: value));
  });
}
}

// dart format on
