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

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

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

/// @nodoc
mixin _$StewardFreeBarDashboard {

 String? get product; int? get totalBars; double? get totalQuantity; double? get totalWeight;
/// Create a copy of StewardFreeBarDashboard
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
$StewardFreeBarDashboardCopyWith<StewardFreeBarDashboard> get copyWith => _$StewardFreeBarDashboardCopyWithImpl<StewardFreeBarDashboard>(this as StewardFreeBarDashboard, _$identity);

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


@override
bool operator ==(Object other) {
  return identical(this, other) || (other.runtimeType == runtimeType&&other is StewardFreeBarDashboard&&(identical(other.product, product) || other.product == product)&&(identical(other.totalBars, totalBars) || other.totalBars == totalBars)&&(identical(other.totalQuantity, totalQuantity) || other.totalQuantity == totalQuantity)&&(identical(other.totalWeight, totalWeight) || other.totalWeight == totalWeight));
}

@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(runtimeType,product,totalBars,totalQuantity,totalWeight);

@override
String toString() {
  return 'StewardFreeBarDashboard(product: $product, totalBars: $totalBars, totalQuantity: $totalQuantity, totalWeight: $totalWeight)';
}


}

/// @nodoc
abstract mixin class $StewardFreeBarDashboardCopyWith<$Res>  {
  factory $StewardFreeBarDashboardCopyWith(StewardFreeBarDashboard value, $Res Function(StewardFreeBarDashboard) _then) = _$StewardFreeBarDashboardCopyWithImpl;
@useResult
$Res call({
 String? product, int? totalBars, double? totalQuantity, double? totalWeight
});




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

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

/// Create a copy of StewardFreeBarDashboard
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline') @override $Res call({Object? product = freezed,Object? totalBars = freezed,Object? totalQuantity = freezed,Object? totalWeight = freezed,}) {
  return _then(_self.copyWith(
product: freezed == product ? _self.product : product // ignore: cast_nullable_to_non_nullable
as String?,totalBars: freezed == totalBars ? _self.totalBars : totalBars // ignore: cast_nullable_to_non_nullable
as int?,totalQuantity: freezed == totalQuantity ? _self.totalQuantity : totalQuantity // ignore: cast_nullable_to_non_nullable
as double?,totalWeight: freezed == totalWeight ? _self.totalWeight : totalWeight // ignore: cast_nullable_to_non_nullable
as double?,
  ));
}

}


/// Adds pattern-matching-related methods to [StewardFreeBarDashboard].
extension StewardFreeBarDashboardPatterns on StewardFreeBarDashboard {
/// 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( _StewardFreeBarDashboard value)?  $default,{required TResult orElse(),}){
final _that = this;
switch (_that) {
case _StewardFreeBarDashboard() 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( _StewardFreeBarDashboard value)  $default,){
final _that = this;
switch (_that) {
case _StewardFreeBarDashboard():
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( _StewardFreeBarDashboard value)?  $default,){
final _that = this;
switch (_that) {
case _StewardFreeBarDashboard() 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? product,  int? totalBars,  double? totalQuantity,  double? totalWeight)?  $default,{required TResult orElse(),}) {final _that = this;
switch (_that) {
case _StewardFreeBarDashboard() when $default != null:
return $default(_that.product,_that.totalBars,_that.totalQuantity,_that.totalWeight);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? product,  int? totalBars,  double? totalQuantity,  double? totalWeight)  $default,) {final _that = this;
switch (_that) {
case _StewardFreeBarDashboard():
return $default(_that.product,_that.totalBars,_that.totalQuantity,_that.totalWeight);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? product,  int? totalBars,  double? totalQuantity,  double? totalWeight)?  $default,) {final _that = this;
switch (_that) {
case _StewardFreeBarDashboard() when $default != null:
return $default(_that.product,_that.totalBars,_that.totalQuantity,_that.totalWeight);case _:
  return null;

}
}

}

/// @nodoc
@JsonSerializable()

class _StewardFreeBarDashboard implements StewardFreeBarDashboard {
  const _StewardFreeBarDashboard({this.product, this.totalBars, this.totalQuantity, this.totalWeight});
  factory _StewardFreeBarDashboard.fromJson(Map<String, dynamic> json) => _$StewardFreeBarDashboardFromJson(json);

@override final  String? product;
@override final  int? totalBars;
@override final  double? totalQuantity;
@override final  double? totalWeight;

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

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

@override
bool operator ==(Object other) {
  return identical(this, other) || (other.runtimeType == runtimeType&&other is _StewardFreeBarDashboard&&(identical(other.product, product) || other.product == product)&&(identical(other.totalBars, totalBars) || other.totalBars == totalBars)&&(identical(other.totalQuantity, totalQuantity) || other.totalQuantity == totalQuantity)&&(identical(other.totalWeight, totalWeight) || other.totalWeight == totalWeight));
}

@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(runtimeType,product,totalBars,totalQuantity,totalWeight);

@override
String toString() {
  return 'StewardFreeBarDashboard(product: $product, totalBars: $totalBars, totalQuantity: $totalQuantity, totalWeight: $totalWeight)';
}


}

/// @nodoc
abstract mixin class _$StewardFreeBarDashboardCopyWith<$Res> implements $StewardFreeBarDashboardCopyWith<$Res> {
  factory _$StewardFreeBarDashboardCopyWith(_StewardFreeBarDashboard value, $Res Function(_StewardFreeBarDashboard) _then) = __$StewardFreeBarDashboardCopyWithImpl;
@override @useResult
$Res call({
 String? product, int? totalBars, double? totalQuantity, double? totalWeight
});




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

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

/// Create a copy of StewardFreeBarDashboard
/// with the given fields replaced by the non-null parameter values.
@override @pragma('vm:prefer-inline') $Res call({Object? product = freezed,Object? totalBars = freezed,Object? totalQuantity = freezed,Object? totalWeight = freezed,}) {
  return _then(_StewardFreeBarDashboard(
product: freezed == product ? _self.product : product // ignore: cast_nullable_to_non_nullable
as String?,totalBars: freezed == totalBars ? _self.totalBars : totalBars // ignore: cast_nullable_to_non_nullable
as int?,totalQuantity: freezed == totalQuantity ? _self.totalQuantity : totalQuantity // ignore: cast_nullable_to_non_nullable
as double?,totalWeight: freezed == totalWeight ? _self.totalWeight : totalWeight // ignore: cast_nullable_to_non_nullable
as double?,
  ));
}


}

// dart format on
