// 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 'equipment_in_request.dart'; // ************************************************************************** // FreezedGenerator // ************************************************************************** T _$identity(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'); EquipmentInRequest _$EquipmentInRequestFromJson(Map json) { return _EquipmentInRequest.fromJson(json); } /// @nodoc mixin _$EquipmentInRequest { int get equipmentId => throw _privateConstructorUsedError; int get quantity => throw _privateConstructorUsedError; int? get warehouseLocationId => throw _privateConstructorUsedError; String? get notes => throw _privateConstructorUsedError; /// Serializes this EquipmentInRequest to a JSON map. Map toJson() => throw _privateConstructorUsedError; /// Create a copy of EquipmentInRequest /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) $EquipmentInRequestCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $EquipmentInRequestCopyWith<$Res> { factory $EquipmentInRequestCopyWith( EquipmentInRequest value, $Res Function(EquipmentInRequest) then) = _$EquipmentInRequestCopyWithImpl<$Res, EquipmentInRequest>; @useResult $Res call( {int equipmentId, int quantity, int? warehouseLocationId, String? notes}); } /// @nodoc class _$EquipmentInRequestCopyWithImpl<$Res, $Val extends EquipmentInRequest> implements $EquipmentInRequestCopyWith<$Res> { _$EquipmentInRequestCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; // ignore: unused_field final $Res Function($Val) _then; /// Create a copy of EquipmentInRequest /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? equipmentId = null, Object? quantity = null, Object? warehouseLocationId = freezed, Object? notes = freezed, }) { return _then(_value.copyWith( equipmentId: null == equipmentId ? _value.equipmentId : equipmentId // ignore: cast_nullable_to_non_nullable as int, quantity: null == quantity ? _value.quantity : quantity // ignore: cast_nullable_to_non_nullable as int, warehouseLocationId: freezed == warehouseLocationId ? _value.warehouseLocationId : warehouseLocationId // ignore: cast_nullable_to_non_nullable as int?, notes: freezed == notes ? _value.notes : notes // ignore: cast_nullable_to_non_nullable as String?, ) as $Val); } } /// @nodoc abstract class _$$EquipmentInRequestImplCopyWith<$Res> implements $EquipmentInRequestCopyWith<$Res> { factory _$$EquipmentInRequestImplCopyWith(_$EquipmentInRequestImpl value, $Res Function(_$EquipmentInRequestImpl) then) = __$$EquipmentInRequestImplCopyWithImpl<$Res>; @override @useResult $Res call( {int equipmentId, int quantity, int? warehouseLocationId, String? notes}); } /// @nodoc class __$$EquipmentInRequestImplCopyWithImpl<$Res> extends _$EquipmentInRequestCopyWithImpl<$Res, _$EquipmentInRequestImpl> implements _$$EquipmentInRequestImplCopyWith<$Res> { __$$EquipmentInRequestImplCopyWithImpl(_$EquipmentInRequestImpl _value, $Res Function(_$EquipmentInRequestImpl) _then) : super(_value, _then); /// Create a copy of EquipmentInRequest /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? equipmentId = null, Object? quantity = null, Object? warehouseLocationId = freezed, Object? notes = freezed, }) { return _then(_$EquipmentInRequestImpl( equipmentId: null == equipmentId ? _value.equipmentId : equipmentId // ignore: cast_nullable_to_non_nullable as int, quantity: null == quantity ? _value.quantity : quantity // ignore: cast_nullable_to_non_nullable as int, warehouseLocationId: freezed == warehouseLocationId ? _value.warehouseLocationId : warehouseLocationId // ignore: cast_nullable_to_non_nullable as int?, notes: freezed == notes ? _value.notes : notes // ignore: cast_nullable_to_non_nullable as String?, )); } } /// @nodoc @JsonSerializable() class _$EquipmentInRequestImpl implements _EquipmentInRequest { const _$EquipmentInRequestImpl( {required this.equipmentId, required this.quantity, this.warehouseLocationId, this.notes}); factory _$EquipmentInRequestImpl.fromJson(Map json) => _$$EquipmentInRequestImplFromJson(json); @override final int equipmentId; @override final int quantity; @override final int? warehouseLocationId; @override final String? notes; @override String toString() { return 'EquipmentInRequest(equipmentId: $equipmentId, quantity: $quantity, warehouseLocationId: $warehouseLocationId, notes: $notes)'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$EquipmentInRequestImpl && (identical(other.equipmentId, equipmentId) || other.equipmentId == equipmentId) && (identical(other.quantity, quantity) || other.quantity == quantity) && (identical(other.warehouseLocationId, warehouseLocationId) || other.warehouseLocationId == warehouseLocationId) && (identical(other.notes, notes) || other.notes == notes)); } @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash( runtimeType, equipmentId, quantity, warehouseLocationId, notes); /// Create a copy of EquipmentInRequest /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$EquipmentInRequestImplCopyWith<_$EquipmentInRequestImpl> get copyWith => __$$EquipmentInRequestImplCopyWithImpl<_$EquipmentInRequestImpl>( this, _$identity); @override Map toJson() { return _$$EquipmentInRequestImplToJson( this, ); } } abstract class _EquipmentInRequest implements EquipmentInRequest { const factory _EquipmentInRequest( {required final int equipmentId, required final int quantity, final int? warehouseLocationId, final String? notes}) = _$EquipmentInRequestImpl; factory _EquipmentInRequest.fromJson(Map json) = _$EquipmentInRequestImpl.fromJson; @override int get equipmentId; @override int get quantity; @override int? get warehouseLocationId; @override String? get notes; /// Create a copy of EquipmentInRequest /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) _$$EquipmentInRequestImplCopyWith<_$EquipmentInRequestImpl> get copyWith => throw _privateConstructorUsedError; }