// 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_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'); CreateEquipmentRequest _$CreateEquipmentRequestFromJson( Map json) { return _CreateEquipmentRequest.fromJson(json); } /// @nodoc mixin _$CreateEquipmentRequest { @JsonKey(name: 'equipment_number') String get equipmentNumber => throw _privateConstructorUsedError; // Sprint 3: Replaced category1/2/3, manufacturer, modelName with models_id @JsonKey(name: 'models_id') int? get modelsId => throw _privateConstructorUsedError; @JsonKey(name: 'serial_number') String? get serialNumber => throw _privateConstructorUsedError; String? get barcode => throw _privateConstructorUsedError; @JsonKey(name: 'purchase_date') @NaiveDateConverter() DateTime? get purchaseDate => throw _privateConstructorUsedError; @JsonKey(name: 'purchase_price') @DecimalConverter() double? get purchasePrice => throw _privateConstructorUsedError; @JsonKey(name: 'company_id') int? get companyId => throw _privateConstructorUsedError; @JsonKey(name: 'warehouse_location_id') int? get warehouseLocationId => throw _privateConstructorUsedError; @JsonKey(name: 'last_inspection_date') @NaiveDateConverter() DateTime? get lastInspectionDate => throw _privateConstructorUsedError; @JsonKey(name: 'next_inspection_date') @NaiveDateConverter() DateTime? get nextInspectionDate => throw _privateConstructorUsedError; String? get remark => throw _privateConstructorUsedError; /// Serializes this CreateEquipmentRequest to a JSON map. Map toJson() => throw _privateConstructorUsedError; /// Create a copy of CreateEquipmentRequest /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) $CreateEquipmentRequestCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $CreateEquipmentRequestCopyWith<$Res> { factory $CreateEquipmentRequestCopyWith(CreateEquipmentRequest value, $Res Function(CreateEquipmentRequest) then) = _$CreateEquipmentRequestCopyWithImpl<$Res, CreateEquipmentRequest>; @useResult $Res call( {@JsonKey(name: 'equipment_number') String equipmentNumber, @JsonKey(name: 'models_id') int? modelsId, @JsonKey(name: 'serial_number') String? serialNumber, String? barcode, @JsonKey(name: 'purchase_date') @NaiveDateConverter() DateTime? purchaseDate, @JsonKey(name: 'purchase_price') @DecimalConverter() double? purchasePrice, @JsonKey(name: 'company_id') int? companyId, @JsonKey(name: 'warehouse_location_id') int? warehouseLocationId, @JsonKey(name: 'last_inspection_date') @NaiveDateConverter() DateTime? lastInspectionDate, @JsonKey(name: 'next_inspection_date') @NaiveDateConverter() DateTime? nextInspectionDate, String? remark}); } /// @nodoc class _$CreateEquipmentRequestCopyWithImpl<$Res, $Val extends CreateEquipmentRequest> implements $CreateEquipmentRequestCopyWith<$Res> { _$CreateEquipmentRequestCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; // ignore: unused_field final $Res Function($Val) _then; /// Create a copy of CreateEquipmentRequest /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? equipmentNumber = null, Object? modelsId = freezed, Object? serialNumber = freezed, Object? barcode = freezed, Object? purchaseDate = freezed, Object? purchasePrice = freezed, Object? companyId = freezed, Object? warehouseLocationId = freezed, Object? lastInspectionDate = freezed, Object? nextInspectionDate = freezed, Object? remark = freezed, }) { return _then(_value.copyWith( equipmentNumber: null == equipmentNumber ? _value.equipmentNumber : equipmentNumber // ignore: cast_nullable_to_non_nullable as String, modelsId: freezed == modelsId ? _value.modelsId : modelsId // ignore: cast_nullable_to_non_nullable as int?, serialNumber: freezed == serialNumber ? _value.serialNumber : serialNumber // ignore: cast_nullable_to_non_nullable as String?, barcode: freezed == barcode ? _value.barcode : barcode // ignore: cast_nullable_to_non_nullable as String?, purchaseDate: freezed == purchaseDate ? _value.purchaseDate : purchaseDate // ignore: cast_nullable_to_non_nullable as DateTime?, purchasePrice: freezed == purchasePrice ? _value.purchasePrice : purchasePrice // ignore: cast_nullable_to_non_nullable as double?, companyId: freezed == companyId ? _value.companyId : companyId // ignore: cast_nullable_to_non_nullable as int?, warehouseLocationId: freezed == warehouseLocationId ? _value.warehouseLocationId : warehouseLocationId // ignore: cast_nullable_to_non_nullable as int?, lastInspectionDate: freezed == lastInspectionDate ? _value.lastInspectionDate : lastInspectionDate // ignore: cast_nullable_to_non_nullable as DateTime?, nextInspectionDate: freezed == nextInspectionDate ? _value.nextInspectionDate : nextInspectionDate // ignore: cast_nullable_to_non_nullable as DateTime?, remark: freezed == remark ? _value.remark : remark // ignore: cast_nullable_to_non_nullable as String?, ) as $Val); } } /// @nodoc abstract class _$$CreateEquipmentRequestImplCopyWith<$Res> implements $CreateEquipmentRequestCopyWith<$Res> { factory _$$CreateEquipmentRequestImplCopyWith( _$CreateEquipmentRequestImpl value, $Res Function(_$CreateEquipmentRequestImpl) then) = __$$CreateEquipmentRequestImplCopyWithImpl<$Res>; @override @useResult $Res call( {@JsonKey(name: 'equipment_number') String equipmentNumber, @JsonKey(name: 'models_id') int? modelsId, @JsonKey(name: 'serial_number') String? serialNumber, String? barcode, @JsonKey(name: 'purchase_date') @NaiveDateConverter() DateTime? purchaseDate, @JsonKey(name: 'purchase_price') @DecimalConverter() double? purchasePrice, @JsonKey(name: 'company_id') int? companyId, @JsonKey(name: 'warehouse_location_id') int? warehouseLocationId, @JsonKey(name: 'last_inspection_date') @NaiveDateConverter() DateTime? lastInspectionDate, @JsonKey(name: 'next_inspection_date') @NaiveDateConverter() DateTime? nextInspectionDate, String? remark}); } /// @nodoc class __$$CreateEquipmentRequestImplCopyWithImpl<$Res> extends _$CreateEquipmentRequestCopyWithImpl<$Res, _$CreateEquipmentRequestImpl> implements _$$CreateEquipmentRequestImplCopyWith<$Res> { __$$CreateEquipmentRequestImplCopyWithImpl( _$CreateEquipmentRequestImpl _value, $Res Function(_$CreateEquipmentRequestImpl) _then) : super(_value, _then); /// Create a copy of CreateEquipmentRequest /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? equipmentNumber = null, Object? modelsId = freezed, Object? serialNumber = freezed, Object? barcode = freezed, Object? purchaseDate = freezed, Object? purchasePrice = freezed, Object? companyId = freezed, Object? warehouseLocationId = freezed, Object? lastInspectionDate = freezed, Object? nextInspectionDate = freezed, Object? remark = freezed, }) { return _then(_$CreateEquipmentRequestImpl( equipmentNumber: null == equipmentNumber ? _value.equipmentNumber : equipmentNumber // ignore: cast_nullable_to_non_nullable as String, modelsId: freezed == modelsId ? _value.modelsId : modelsId // ignore: cast_nullable_to_non_nullable as int?, serialNumber: freezed == serialNumber ? _value.serialNumber : serialNumber // ignore: cast_nullable_to_non_nullable as String?, barcode: freezed == barcode ? _value.barcode : barcode // ignore: cast_nullable_to_non_nullable as String?, purchaseDate: freezed == purchaseDate ? _value.purchaseDate : purchaseDate // ignore: cast_nullable_to_non_nullable as DateTime?, purchasePrice: freezed == purchasePrice ? _value.purchasePrice : purchasePrice // ignore: cast_nullable_to_non_nullable as double?, companyId: freezed == companyId ? _value.companyId : companyId // ignore: cast_nullable_to_non_nullable as int?, warehouseLocationId: freezed == warehouseLocationId ? _value.warehouseLocationId : warehouseLocationId // ignore: cast_nullable_to_non_nullable as int?, lastInspectionDate: freezed == lastInspectionDate ? _value.lastInspectionDate : lastInspectionDate // ignore: cast_nullable_to_non_nullable as DateTime?, nextInspectionDate: freezed == nextInspectionDate ? _value.nextInspectionDate : nextInspectionDate // ignore: cast_nullable_to_non_nullable as DateTime?, remark: freezed == remark ? _value.remark : remark // ignore: cast_nullable_to_non_nullable as String?, )); } } /// @nodoc @JsonSerializable() class _$CreateEquipmentRequestImpl implements _CreateEquipmentRequest { const _$CreateEquipmentRequestImpl( {@JsonKey(name: 'equipment_number') required this.equipmentNumber, @JsonKey(name: 'models_id') this.modelsId, @JsonKey(name: 'serial_number') this.serialNumber, this.barcode, @JsonKey(name: 'purchase_date') @NaiveDateConverter() this.purchaseDate, @JsonKey(name: 'purchase_price') @DecimalConverter() this.purchasePrice, @JsonKey(name: 'company_id') this.companyId, @JsonKey(name: 'warehouse_location_id') this.warehouseLocationId, @JsonKey(name: 'last_inspection_date') @NaiveDateConverter() this.lastInspectionDate, @JsonKey(name: 'next_inspection_date') @NaiveDateConverter() this.nextInspectionDate, this.remark}); factory _$CreateEquipmentRequestImpl.fromJson(Map json) => _$$CreateEquipmentRequestImplFromJson(json); @override @JsonKey(name: 'equipment_number') final String equipmentNumber; // Sprint 3: Replaced category1/2/3, manufacturer, modelName with models_id @override @JsonKey(name: 'models_id') final int? modelsId; @override @JsonKey(name: 'serial_number') final String? serialNumber; @override final String? barcode; @override @JsonKey(name: 'purchase_date') @NaiveDateConverter() final DateTime? purchaseDate; @override @JsonKey(name: 'purchase_price') @DecimalConverter() final double? purchasePrice; @override @JsonKey(name: 'company_id') final int? companyId; @override @JsonKey(name: 'warehouse_location_id') final int? warehouseLocationId; @override @JsonKey(name: 'last_inspection_date') @NaiveDateConverter() final DateTime? lastInspectionDate; @override @JsonKey(name: 'next_inspection_date') @NaiveDateConverter() final DateTime? nextInspectionDate; @override final String? remark; @override String toString() { return 'CreateEquipmentRequest(equipmentNumber: $equipmentNumber, modelsId: $modelsId, serialNumber: $serialNumber, barcode: $barcode, purchaseDate: $purchaseDate, purchasePrice: $purchasePrice, companyId: $companyId, warehouseLocationId: $warehouseLocationId, lastInspectionDate: $lastInspectionDate, nextInspectionDate: $nextInspectionDate, remark: $remark)'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$CreateEquipmentRequestImpl && (identical(other.equipmentNumber, equipmentNumber) || other.equipmentNumber == equipmentNumber) && (identical(other.modelsId, modelsId) || other.modelsId == modelsId) && (identical(other.serialNumber, serialNumber) || other.serialNumber == serialNumber) && (identical(other.barcode, barcode) || other.barcode == barcode) && (identical(other.purchaseDate, purchaseDate) || other.purchaseDate == purchaseDate) && (identical(other.purchasePrice, purchasePrice) || other.purchasePrice == purchasePrice) && (identical(other.companyId, companyId) || other.companyId == companyId) && (identical(other.warehouseLocationId, warehouseLocationId) || other.warehouseLocationId == warehouseLocationId) && (identical(other.lastInspectionDate, lastInspectionDate) || other.lastInspectionDate == lastInspectionDate) && (identical(other.nextInspectionDate, nextInspectionDate) || other.nextInspectionDate == nextInspectionDate) && (identical(other.remark, remark) || other.remark == remark)); } @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash( runtimeType, equipmentNumber, modelsId, serialNumber, barcode, purchaseDate, purchasePrice, companyId, warehouseLocationId, lastInspectionDate, nextInspectionDate, remark); /// Create a copy of CreateEquipmentRequest /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$CreateEquipmentRequestImplCopyWith<_$CreateEquipmentRequestImpl> get copyWith => __$$CreateEquipmentRequestImplCopyWithImpl< _$CreateEquipmentRequestImpl>(this, _$identity); @override Map toJson() { return _$$CreateEquipmentRequestImplToJson( this, ); } } abstract class _CreateEquipmentRequest implements CreateEquipmentRequest { const factory _CreateEquipmentRequest( {@JsonKey(name: 'equipment_number') required final String equipmentNumber, @JsonKey(name: 'models_id') final int? modelsId, @JsonKey(name: 'serial_number') final String? serialNumber, final String? barcode, @JsonKey(name: 'purchase_date') @NaiveDateConverter() final DateTime? purchaseDate, @JsonKey(name: 'purchase_price') @DecimalConverter() final double? purchasePrice, @JsonKey(name: 'company_id') final int? companyId, @JsonKey(name: 'warehouse_location_id') final int? warehouseLocationId, @JsonKey(name: 'last_inspection_date') @NaiveDateConverter() final DateTime? lastInspectionDate, @JsonKey(name: 'next_inspection_date') @NaiveDateConverter() final DateTime? nextInspectionDate, final String? remark}) = _$CreateEquipmentRequestImpl; factory _CreateEquipmentRequest.fromJson(Map json) = _$CreateEquipmentRequestImpl.fromJson; @override @JsonKey(name: 'equipment_number') String get equipmentNumber; // Sprint 3: Replaced category1/2/3, manufacturer, modelName with models_id @override @JsonKey(name: 'models_id') int? get modelsId; @override @JsonKey(name: 'serial_number') String? get serialNumber; @override String? get barcode; @override @JsonKey(name: 'purchase_date') @NaiveDateConverter() DateTime? get purchaseDate; @override @JsonKey(name: 'purchase_price') @DecimalConverter() double? get purchasePrice; @override @JsonKey(name: 'company_id') int? get companyId; @override @JsonKey(name: 'warehouse_location_id') int? get warehouseLocationId; @override @JsonKey(name: 'last_inspection_date') @NaiveDateConverter() DateTime? get lastInspectionDate; @override @JsonKey(name: 'next_inspection_date') @NaiveDateConverter() DateTime? get nextInspectionDate; @override String? get remark; /// Create a copy of CreateEquipmentRequest /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) _$$CreateEquipmentRequestImplCopyWith<_$CreateEquipmentRequestImpl> get copyWith => throw _privateConstructorUsedError; } UpdateEquipmentRequest _$UpdateEquipmentRequestFromJson( Map json) { return _UpdateEquipmentRequest.fromJson(json); } /// @nodoc mixin _$UpdateEquipmentRequest { // Sprint 3: Replaced category1/2/3, manufacturer, modelName with models_id @JsonKey(name: 'models_id', includeIfNull: false) int? get modelsId => throw _privateConstructorUsedError; @JsonKey(name: 'serial_number', includeIfNull: false) String? get serialNumber => throw _privateConstructorUsedError; @JsonKey(includeIfNull: false) String? get barcode => throw _privateConstructorUsedError; @JsonKey(name: 'purchase_date', includeIfNull: false) @NaiveDateConverter() DateTime? get purchaseDate => throw _privateConstructorUsedError; @JsonKey(name: 'purchase_price', includeIfNull: false) @DecimalConverter() double? get purchasePrice => throw _privateConstructorUsedError; @JsonKey(includeIfNull: false) String? get status => throw _privateConstructorUsedError; @JsonKey(name: 'company_id', includeIfNull: false) int? get companyId => throw _privateConstructorUsedError; @JsonKey(name: 'warehouse_location_id', includeIfNull: false) int? get warehouseLocationId => throw _privateConstructorUsedError; @JsonKey(name: 'last_inspection_date', includeIfNull: false) @NaiveDateConverter() DateTime? get lastInspectionDate => throw _privateConstructorUsedError; @JsonKey(name: 'next_inspection_date', includeIfNull: false) @NaiveDateConverter() DateTime? get nextInspectionDate => throw _privateConstructorUsedError; @JsonKey(includeIfNull: false) String? get remark => throw _privateConstructorUsedError; /// Serializes this UpdateEquipmentRequest to a JSON map. Map toJson() => throw _privateConstructorUsedError; /// Create a copy of UpdateEquipmentRequest /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) $UpdateEquipmentRequestCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $UpdateEquipmentRequestCopyWith<$Res> { factory $UpdateEquipmentRequestCopyWith(UpdateEquipmentRequest value, $Res Function(UpdateEquipmentRequest) then) = _$UpdateEquipmentRequestCopyWithImpl<$Res, UpdateEquipmentRequest>; @useResult $Res call( {@JsonKey(name: 'models_id', includeIfNull: false) int? modelsId, @JsonKey(name: 'serial_number', includeIfNull: false) String? serialNumber, @JsonKey(includeIfNull: false) String? barcode, @JsonKey(name: 'purchase_date', includeIfNull: false) @NaiveDateConverter() DateTime? purchaseDate, @JsonKey(name: 'purchase_price', includeIfNull: false) @DecimalConverter() double? purchasePrice, @JsonKey(includeIfNull: false) String? status, @JsonKey(name: 'company_id', includeIfNull: false) int? companyId, @JsonKey(name: 'warehouse_location_id', includeIfNull: false) int? warehouseLocationId, @JsonKey(name: 'last_inspection_date', includeIfNull: false) @NaiveDateConverter() DateTime? lastInspectionDate, @JsonKey(name: 'next_inspection_date', includeIfNull: false) @NaiveDateConverter() DateTime? nextInspectionDate, @JsonKey(includeIfNull: false) String? remark}); } /// @nodoc class _$UpdateEquipmentRequestCopyWithImpl<$Res, $Val extends UpdateEquipmentRequest> implements $UpdateEquipmentRequestCopyWith<$Res> { _$UpdateEquipmentRequestCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; // ignore: unused_field final $Res Function($Val) _then; /// Create a copy of UpdateEquipmentRequest /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? modelsId = freezed, Object? serialNumber = freezed, Object? barcode = freezed, Object? purchaseDate = freezed, Object? purchasePrice = freezed, Object? status = freezed, Object? companyId = freezed, Object? warehouseLocationId = freezed, Object? lastInspectionDate = freezed, Object? nextInspectionDate = freezed, Object? remark = freezed, }) { return _then(_value.copyWith( modelsId: freezed == modelsId ? _value.modelsId : modelsId // ignore: cast_nullable_to_non_nullable as int?, serialNumber: freezed == serialNumber ? _value.serialNumber : serialNumber // ignore: cast_nullable_to_non_nullable as String?, barcode: freezed == barcode ? _value.barcode : barcode // ignore: cast_nullable_to_non_nullable as String?, purchaseDate: freezed == purchaseDate ? _value.purchaseDate : purchaseDate // ignore: cast_nullable_to_non_nullable as DateTime?, purchasePrice: freezed == purchasePrice ? _value.purchasePrice : purchasePrice // ignore: cast_nullable_to_non_nullable as double?, status: freezed == status ? _value.status : status // ignore: cast_nullable_to_non_nullable as String?, companyId: freezed == companyId ? _value.companyId : companyId // ignore: cast_nullable_to_non_nullable as int?, warehouseLocationId: freezed == warehouseLocationId ? _value.warehouseLocationId : warehouseLocationId // ignore: cast_nullable_to_non_nullable as int?, lastInspectionDate: freezed == lastInspectionDate ? _value.lastInspectionDate : lastInspectionDate // ignore: cast_nullable_to_non_nullable as DateTime?, nextInspectionDate: freezed == nextInspectionDate ? _value.nextInspectionDate : nextInspectionDate // ignore: cast_nullable_to_non_nullable as DateTime?, remark: freezed == remark ? _value.remark : remark // ignore: cast_nullable_to_non_nullable as String?, ) as $Val); } } /// @nodoc abstract class _$$UpdateEquipmentRequestImplCopyWith<$Res> implements $UpdateEquipmentRequestCopyWith<$Res> { factory _$$UpdateEquipmentRequestImplCopyWith( _$UpdateEquipmentRequestImpl value, $Res Function(_$UpdateEquipmentRequestImpl) then) = __$$UpdateEquipmentRequestImplCopyWithImpl<$Res>; @override @useResult $Res call( {@JsonKey(name: 'models_id', includeIfNull: false) int? modelsId, @JsonKey(name: 'serial_number', includeIfNull: false) String? serialNumber, @JsonKey(includeIfNull: false) String? barcode, @JsonKey(name: 'purchase_date', includeIfNull: false) @NaiveDateConverter() DateTime? purchaseDate, @JsonKey(name: 'purchase_price', includeIfNull: false) @DecimalConverter() double? purchasePrice, @JsonKey(includeIfNull: false) String? status, @JsonKey(name: 'company_id', includeIfNull: false) int? companyId, @JsonKey(name: 'warehouse_location_id', includeIfNull: false) int? warehouseLocationId, @JsonKey(name: 'last_inspection_date', includeIfNull: false) @NaiveDateConverter() DateTime? lastInspectionDate, @JsonKey(name: 'next_inspection_date', includeIfNull: false) @NaiveDateConverter() DateTime? nextInspectionDate, @JsonKey(includeIfNull: false) String? remark}); } /// @nodoc class __$$UpdateEquipmentRequestImplCopyWithImpl<$Res> extends _$UpdateEquipmentRequestCopyWithImpl<$Res, _$UpdateEquipmentRequestImpl> implements _$$UpdateEquipmentRequestImplCopyWith<$Res> { __$$UpdateEquipmentRequestImplCopyWithImpl( _$UpdateEquipmentRequestImpl _value, $Res Function(_$UpdateEquipmentRequestImpl) _then) : super(_value, _then); /// Create a copy of UpdateEquipmentRequest /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? modelsId = freezed, Object? serialNumber = freezed, Object? barcode = freezed, Object? purchaseDate = freezed, Object? purchasePrice = freezed, Object? status = freezed, Object? companyId = freezed, Object? warehouseLocationId = freezed, Object? lastInspectionDate = freezed, Object? nextInspectionDate = freezed, Object? remark = freezed, }) { return _then(_$UpdateEquipmentRequestImpl( modelsId: freezed == modelsId ? _value.modelsId : modelsId // ignore: cast_nullable_to_non_nullable as int?, serialNumber: freezed == serialNumber ? _value.serialNumber : serialNumber // ignore: cast_nullable_to_non_nullable as String?, barcode: freezed == barcode ? _value.barcode : barcode // ignore: cast_nullable_to_non_nullable as String?, purchaseDate: freezed == purchaseDate ? _value.purchaseDate : purchaseDate // ignore: cast_nullable_to_non_nullable as DateTime?, purchasePrice: freezed == purchasePrice ? _value.purchasePrice : purchasePrice // ignore: cast_nullable_to_non_nullable as double?, status: freezed == status ? _value.status : status // ignore: cast_nullable_to_non_nullable as String?, companyId: freezed == companyId ? _value.companyId : companyId // ignore: cast_nullable_to_non_nullable as int?, warehouseLocationId: freezed == warehouseLocationId ? _value.warehouseLocationId : warehouseLocationId // ignore: cast_nullable_to_non_nullable as int?, lastInspectionDate: freezed == lastInspectionDate ? _value.lastInspectionDate : lastInspectionDate // ignore: cast_nullable_to_non_nullable as DateTime?, nextInspectionDate: freezed == nextInspectionDate ? _value.nextInspectionDate : nextInspectionDate // ignore: cast_nullable_to_non_nullable as DateTime?, remark: freezed == remark ? _value.remark : remark // ignore: cast_nullable_to_non_nullable as String?, )); } } /// @nodoc @JsonSerializable() class _$UpdateEquipmentRequestImpl implements _UpdateEquipmentRequest { const _$UpdateEquipmentRequestImpl( {@JsonKey(name: 'models_id', includeIfNull: false) this.modelsId, @JsonKey(name: 'serial_number', includeIfNull: false) this.serialNumber, @JsonKey(includeIfNull: false) this.barcode, @JsonKey(name: 'purchase_date', includeIfNull: false) @NaiveDateConverter() this.purchaseDate, @JsonKey(name: 'purchase_price', includeIfNull: false) @DecimalConverter() this.purchasePrice, @JsonKey(includeIfNull: false) this.status, @JsonKey(name: 'company_id', includeIfNull: false) this.companyId, @JsonKey(name: 'warehouse_location_id', includeIfNull: false) this.warehouseLocationId, @JsonKey(name: 'last_inspection_date', includeIfNull: false) @NaiveDateConverter() this.lastInspectionDate, @JsonKey(name: 'next_inspection_date', includeIfNull: false) @NaiveDateConverter() this.nextInspectionDate, @JsonKey(includeIfNull: false) this.remark}); factory _$UpdateEquipmentRequestImpl.fromJson(Map json) => _$$UpdateEquipmentRequestImplFromJson(json); // Sprint 3: Replaced category1/2/3, manufacturer, modelName with models_id @override @JsonKey(name: 'models_id', includeIfNull: false) final int? modelsId; @override @JsonKey(name: 'serial_number', includeIfNull: false) final String? serialNumber; @override @JsonKey(includeIfNull: false) final String? barcode; @override @JsonKey(name: 'purchase_date', includeIfNull: false) @NaiveDateConverter() final DateTime? purchaseDate; @override @JsonKey(name: 'purchase_price', includeIfNull: false) @DecimalConverter() final double? purchasePrice; @override @JsonKey(includeIfNull: false) final String? status; @override @JsonKey(name: 'company_id', includeIfNull: false) final int? companyId; @override @JsonKey(name: 'warehouse_location_id', includeIfNull: false) final int? warehouseLocationId; @override @JsonKey(name: 'last_inspection_date', includeIfNull: false) @NaiveDateConverter() final DateTime? lastInspectionDate; @override @JsonKey(name: 'next_inspection_date', includeIfNull: false) @NaiveDateConverter() final DateTime? nextInspectionDate; @override @JsonKey(includeIfNull: false) final String? remark; @override String toString() { return 'UpdateEquipmentRequest(modelsId: $modelsId, serialNumber: $serialNumber, barcode: $barcode, purchaseDate: $purchaseDate, purchasePrice: $purchasePrice, status: $status, companyId: $companyId, warehouseLocationId: $warehouseLocationId, lastInspectionDate: $lastInspectionDate, nextInspectionDate: $nextInspectionDate, remark: $remark)'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$UpdateEquipmentRequestImpl && (identical(other.modelsId, modelsId) || other.modelsId == modelsId) && (identical(other.serialNumber, serialNumber) || other.serialNumber == serialNumber) && (identical(other.barcode, barcode) || other.barcode == barcode) && (identical(other.purchaseDate, purchaseDate) || other.purchaseDate == purchaseDate) && (identical(other.purchasePrice, purchasePrice) || other.purchasePrice == purchasePrice) && (identical(other.status, status) || other.status == status) && (identical(other.companyId, companyId) || other.companyId == companyId) && (identical(other.warehouseLocationId, warehouseLocationId) || other.warehouseLocationId == warehouseLocationId) && (identical(other.lastInspectionDate, lastInspectionDate) || other.lastInspectionDate == lastInspectionDate) && (identical(other.nextInspectionDate, nextInspectionDate) || other.nextInspectionDate == nextInspectionDate) && (identical(other.remark, remark) || other.remark == remark)); } @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash( runtimeType, modelsId, serialNumber, barcode, purchaseDate, purchasePrice, status, companyId, warehouseLocationId, lastInspectionDate, nextInspectionDate, remark); /// Create a copy of UpdateEquipmentRequest /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$UpdateEquipmentRequestImplCopyWith<_$UpdateEquipmentRequestImpl> get copyWith => __$$UpdateEquipmentRequestImplCopyWithImpl< _$UpdateEquipmentRequestImpl>(this, _$identity); @override Map toJson() { return _$$UpdateEquipmentRequestImplToJson( this, ); } } abstract class _UpdateEquipmentRequest implements UpdateEquipmentRequest { const factory _UpdateEquipmentRequest( {@JsonKey(name: 'models_id', includeIfNull: false) final int? modelsId, @JsonKey(name: 'serial_number', includeIfNull: false) final String? serialNumber, @JsonKey(includeIfNull: false) final String? barcode, @JsonKey(name: 'purchase_date', includeIfNull: false) @NaiveDateConverter() final DateTime? purchaseDate, @JsonKey(name: 'purchase_price', includeIfNull: false) @DecimalConverter() final double? purchasePrice, @JsonKey(includeIfNull: false) final String? status, @JsonKey(name: 'company_id', includeIfNull: false) final int? companyId, @JsonKey(name: 'warehouse_location_id', includeIfNull: false) final int? warehouseLocationId, @JsonKey(name: 'last_inspection_date', includeIfNull: false) @NaiveDateConverter() final DateTime? lastInspectionDate, @JsonKey(name: 'next_inspection_date', includeIfNull: false) @NaiveDateConverter() final DateTime? nextInspectionDate, @JsonKey(includeIfNull: false) final String? remark}) = _$UpdateEquipmentRequestImpl; factory _UpdateEquipmentRequest.fromJson(Map json) = _$UpdateEquipmentRequestImpl.fromJson; // Sprint 3: Replaced category1/2/3, manufacturer, modelName with models_id @override @JsonKey(name: 'models_id', includeIfNull: false) int? get modelsId; @override @JsonKey(name: 'serial_number', includeIfNull: false) String? get serialNumber; @override @JsonKey(includeIfNull: false) String? get barcode; @override @JsonKey(name: 'purchase_date', includeIfNull: false) @NaiveDateConverter() DateTime? get purchaseDate; @override @JsonKey(name: 'purchase_price', includeIfNull: false) @DecimalConverter() double? get purchasePrice; @override @JsonKey(includeIfNull: false) String? get status; @override @JsonKey(name: 'company_id', includeIfNull: false) int? get companyId; @override @JsonKey(name: 'warehouse_location_id', includeIfNull: false) int? get warehouseLocationId; @override @JsonKey(name: 'last_inspection_date', includeIfNull: false) @NaiveDateConverter() DateTime? get lastInspectionDate; @override @JsonKey(name: 'next_inspection_date', includeIfNull: false) @NaiveDateConverter() DateTime? get nextInspectionDate; @override @JsonKey(includeIfNull: false) String? get remark; /// Create a copy of UpdateEquipmentRequest /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) _$$UpdateEquipmentRequestImplCopyWith<_$UpdateEquipmentRequestImpl> get copyWith => throw _privateConstructorUsedError; }