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

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

// dart format off
T _$identity<T>(T value) => value;

/// @nodoc
mixin _$GetDeviceStepsResponseModel {

 List<GetDeviceStepsItemResponseModel> get items;
/// Create a copy of GetDeviceStepsResponseModel
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
$GetDeviceStepsResponseModelCopyWith<GetDeviceStepsResponseModel> get copyWith => _$GetDeviceStepsResponseModelCopyWithImpl<GetDeviceStepsResponseModel>(this as GetDeviceStepsResponseModel, _$identity);

  /// Serializes this GetDeviceStepsResponseModel to a JSON map.
  Map<String, dynamic> toJson();


@override
bool operator ==(Object other) {
  return identical(this, other) || (other.runtimeType == runtimeType&&other is GetDeviceStepsResponseModel&&const DeepCollectionEquality().equals(other.items, items));
}

@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(runtimeType,const DeepCollectionEquality().hash(items));

@override
String toString() {
  return 'GetDeviceStepsResponseModel(items: $items)';
}


}

/// @nodoc
abstract mixin class $GetDeviceStepsResponseModelCopyWith<$Res>  {
  factory $GetDeviceStepsResponseModelCopyWith(GetDeviceStepsResponseModel value, $Res Function(GetDeviceStepsResponseModel) _then) = _$GetDeviceStepsResponseModelCopyWithImpl;
@useResult
$Res call({
 List<GetDeviceStepsItemResponseModel> items
});




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

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

/// Create a copy of GetDeviceStepsResponseModel
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline') @override $Res call({Object? items = null,}) {
  return _then(_self.copyWith(
items: null == items ? _self.items : items // ignore: cast_nullable_to_non_nullable
as List<GetDeviceStepsItemResponseModel>,
  ));
}

}


/// Adds pattern-matching-related methods to [GetDeviceStepsResponseModel].
extension GetDeviceStepsResponseModelPatterns on GetDeviceStepsResponseModel {
/// 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( _GetDeviceStepsResponseModel value)?  $default,{required TResult orElse(),}){
final _that = this;
switch (_that) {
case _GetDeviceStepsResponseModel() 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( _GetDeviceStepsResponseModel value)  $default,){
final _that = this;
switch (_that) {
case _GetDeviceStepsResponseModel():
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( _GetDeviceStepsResponseModel value)?  $default,){
final _that = this;
switch (_that) {
case _GetDeviceStepsResponseModel() 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( List<GetDeviceStepsItemResponseModel> items)?  $default,{required TResult orElse(),}) {final _that = this;
switch (_that) {
case _GetDeviceStepsResponseModel() when $default != null:
return $default(_that.items);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( List<GetDeviceStepsItemResponseModel> items)  $default,) {final _that = this;
switch (_that) {
case _GetDeviceStepsResponseModel():
return $default(_that.items);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( List<GetDeviceStepsItemResponseModel> items)?  $default,) {final _that = this;
switch (_that) {
case _GetDeviceStepsResponseModel() when $default != null:
return $default(_that.items);case _:
  return null;

}
}

}

/// @nodoc
@JsonSerializable()

class _GetDeviceStepsResponseModel implements GetDeviceStepsResponseModel {
  const _GetDeviceStepsResponseModel({required final  List<GetDeviceStepsItemResponseModel> items}): _items = items;
  factory _GetDeviceStepsResponseModel.fromJson(Map<String, dynamic> json) => _$GetDeviceStepsResponseModelFromJson(json);

 final  List<GetDeviceStepsItemResponseModel> _items;
@override List<GetDeviceStepsItemResponseModel> get items {
  if (_items is EqualUnmodifiableListView) return _items;
  // ignore: implicit_dynamic_type
  return EqualUnmodifiableListView(_items);
}


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

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

@override
bool operator ==(Object other) {
  return identical(this, other) || (other.runtimeType == runtimeType&&other is _GetDeviceStepsResponseModel&&const DeepCollectionEquality().equals(other._items, _items));
}

@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(runtimeType,const DeepCollectionEquality().hash(_items));

@override
String toString() {
  return 'GetDeviceStepsResponseModel(items: $items)';
}


}

/// @nodoc
abstract mixin class _$GetDeviceStepsResponseModelCopyWith<$Res> implements $GetDeviceStepsResponseModelCopyWith<$Res> {
  factory _$GetDeviceStepsResponseModelCopyWith(_GetDeviceStepsResponseModel value, $Res Function(_GetDeviceStepsResponseModel) _then) = __$GetDeviceStepsResponseModelCopyWithImpl;
@override @useResult
$Res call({
 List<GetDeviceStepsItemResponseModel> items
});




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

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

/// Create a copy of GetDeviceStepsResponseModel
/// with the given fields replaced by the non-null parameter values.
@override @pragma('vm:prefer-inline') $Res call({Object? items = null,}) {
  return _then(_GetDeviceStepsResponseModel(
items: null == items ? _self._items : items // ignore: cast_nullable_to_non_nullable
as List<GetDeviceStepsItemResponseModel>,
  ));
}


}


/// @nodoc
mixin _$GetDeviceStepsItemResponseModel {

 String get id; String get deviceIdentificator; int get steps; int get totalSteps; int get occurredAt; int get createdAt;
/// Create a copy of GetDeviceStepsItemResponseModel
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
$GetDeviceStepsItemResponseModelCopyWith<GetDeviceStepsItemResponseModel> get copyWith => _$GetDeviceStepsItemResponseModelCopyWithImpl<GetDeviceStepsItemResponseModel>(this as GetDeviceStepsItemResponseModel, _$identity);

  /// Serializes this GetDeviceStepsItemResponseModel to a JSON map.
  Map<String, dynamic> toJson();


@override
bool operator ==(Object other) {
  return identical(this, other) || (other.runtimeType == runtimeType&&other is GetDeviceStepsItemResponseModel&&(identical(other.id, id) || other.id == id)&&(identical(other.deviceIdentificator, deviceIdentificator) || other.deviceIdentificator == deviceIdentificator)&&(identical(other.steps, steps) || other.steps == steps)&&(identical(other.totalSteps, totalSteps) || other.totalSteps == totalSteps)&&(identical(other.occurredAt, occurredAt) || other.occurredAt == occurredAt)&&(identical(other.createdAt, createdAt) || other.createdAt == createdAt));
}

@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(runtimeType,id,deviceIdentificator,steps,totalSteps,occurredAt,createdAt);

@override
String toString() {
  return 'GetDeviceStepsItemResponseModel(id: $id, deviceIdentificator: $deviceIdentificator, steps: $steps, totalSteps: $totalSteps, occurredAt: $occurredAt, createdAt: $createdAt)';
}


}

/// @nodoc
abstract mixin class $GetDeviceStepsItemResponseModelCopyWith<$Res>  {
  factory $GetDeviceStepsItemResponseModelCopyWith(GetDeviceStepsItemResponseModel value, $Res Function(GetDeviceStepsItemResponseModel) _then) = _$GetDeviceStepsItemResponseModelCopyWithImpl;
@useResult
$Res call({
 String id, String deviceIdentificator, int steps, int totalSteps, int occurredAt, int createdAt
});




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

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

/// Create a copy of GetDeviceStepsItemResponseModel
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline') @override $Res call({Object? id = null,Object? deviceIdentificator = null,Object? steps = null,Object? totalSteps = null,Object? occurredAt = null,Object? createdAt = null,}) {
  return _then(_self.copyWith(
id: null == id ? _self.id : id // ignore: cast_nullable_to_non_nullable
as String,deviceIdentificator: null == deviceIdentificator ? _self.deviceIdentificator : deviceIdentificator // ignore: cast_nullable_to_non_nullable
as String,steps: null == steps ? _self.steps : steps // ignore: cast_nullable_to_non_nullable
as int,totalSteps: null == totalSteps ? _self.totalSteps : totalSteps // ignore: cast_nullable_to_non_nullable
as int,occurredAt: null == occurredAt ? _self.occurredAt : occurredAt // ignore: cast_nullable_to_non_nullable
as int,createdAt: null == createdAt ? _self.createdAt : createdAt // ignore: cast_nullable_to_non_nullable
as int,
  ));
}

}


/// Adds pattern-matching-related methods to [GetDeviceStepsItemResponseModel].
extension GetDeviceStepsItemResponseModelPatterns on GetDeviceStepsItemResponseModel {
/// 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( _GetDeviceStepsItemResponseModel value)?  $default,{required TResult orElse(),}){
final _that = this;
switch (_that) {
case _GetDeviceStepsItemResponseModel() 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( _GetDeviceStepsItemResponseModel value)  $default,){
final _that = this;
switch (_that) {
case _GetDeviceStepsItemResponseModel():
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( _GetDeviceStepsItemResponseModel value)?  $default,){
final _that = this;
switch (_that) {
case _GetDeviceStepsItemResponseModel() 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( String id,  String deviceIdentificator,  int steps,  int totalSteps,  int occurredAt,  int createdAt)?  $default,{required TResult orElse(),}) {final _that = this;
switch (_that) {
case _GetDeviceStepsItemResponseModel() when $default != null:
return $default(_that.id,_that.deviceIdentificator,_that.steps,_that.totalSteps,_that.occurredAt,_that.createdAt);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( String id,  String deviceIdentificator,  int steps,  int totalSteps,  int occurredAt,  int createdAt)  $default,) {final _that = this;
switch (_that) {
case _GetDeviceStepsItemResponseModel():
return $default(_that.id,_that.deviceIdentificator,_that.steps,_that.totalSteps,_that.occurredAt,_that.createdAt);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( String id,  String deviceIdentificator,  int steps,  int totalSteps,  int occurredAt,  int createdAt)?  $default,) {final _that = this;
switch (_that) {
case _GetDeviceStepsItemResponseModel() when $default != null:
return $default(_that.id,_that.deviceIdentificator,_that.steps,_that.totalSteps,_that.occurredAt,_that.createdAt);case _:
  return null;

}
}

}

/// @nodoc
@JsonSerializable()

class _GetDeviceStepsItemResponseModel implements GetDeviceStepsItemResponseModel {
  const _GetDeviceStepsItemResponseModel({required this.id, required this.deviceIdentificator, required this.steps, required this.totalSteps, required this.occurredAt, required this.createdAt});
  factory _GetDeviceStepsItemResponseModel.fromJson(Map<String, dynamic> json) => _$GetDeviceStepsItemResponseModelFromJson(json);

@override final  String id;
@override final  String deviceIdentificator;
@override final  int steps;
@override final  int totalSteps;
@override final  int occurredAt;
@override final  int createdAt;

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

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

@override
bool operator ==(Object other) {
  return identical(this, other) || (other.runtimeType == runtimeType&&other is _GetDeviceStepsItemResponseModel&&(identical(other.id, id) || other.id == id)&&(identical(other.deviceIdentificator, deviceIdentificator) || other.deviceIdentificator == deviceIdentificator)&&(identical(other.steps, steps) || other.steps == steps)&&(identical(other.totalSteps, totalSteps) || other.totalSteps == totalSteps)&&(identical(other.occurredAt, occurredAt) || other.occurredAt == occurredAt)&&(identical(other.createdAt, createdAt) || other.createdAt == createdAt));
}

@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(runtimeType,id,deviceIdentificator,steps,totalSteps,occurredAt,createdAt);

@override
String toString() {
  return 'GetDeviceStepsItemResponseModel(id: $id, deviceIdentificator: $deviceIdentificator, steps: $steps, totalSteps: $totalSteps, occurredAt: $occurredAt, createdAt: $createdAt)';
}


}

/// @nodoc
abstract mixin class _$GetDeviceStepsItemResponseModelCopyWith<$Res> implements $GetDeviceStepsItemResponseModelCopyWith<$Res> {
  factory _$GetDeviceStepsItemResponseModelCopyWith(_GetDeviceStepsItemResponseModel value, $Res Function(_GetDeviceStepsItemResponseModel) _then) = __$GetDeviceStepsItemResponseModelCopyWithImpl;
@override @useResult
$Res call({
 String id, String deviceIdentificator, int steps, int totalSteps, int occurredAt, int createdAt
});




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

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

/// Create a copy of GetDeviceStepsItemResponseModel
/// with the given fields replaced by the non-null parameter values.
@override @pragma('vm:prefer-inline') $Res call({Object? id = null,Object? deviceIdentificator = null,Object? steps = null,Object? totalSteps = null,Object? occurredAt = null,Object? createdAt = null,}) {
  return _then(_GetDeviceStepsItemResponseModel(
id: null == id ? _self.id : id // ignore: cast_nullable_to_non_nullable
as String,deviceIdentificator: null == deviceIdentificator ? _self.deviceIdentificator : deviceIdentificator // ignore: cast_nullable_to_non_nullable
as String,steps: null == steps ? _self.steps : steps // ignore: cast_nullable_to_non_nullable
as int,totalSteps: null == totalSteps ? _self.totalSteps : totalSteps // ignore: cast_nullable_to_non_nullable
as int,occurredAt: null == occurredAt ? _self.occurredAt : occurredAt // ignore: cast_nullable_to_non_nullable
as int,createdAt: null == createdAt ? _self.createdAt : createdAt // ignore: cast_nullable_to_non_nullable
as int,
  ));
}


}

// dart format on
