// 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_dto.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'); EquipmentDto _$EquipmentDtoFromJson(Map json) { return _EquipmentDto.fromJson(json); } /// @nodoc mixin _$EquipmentDto { int get id => throw _privateConstructorUsedError; @JsonKey(name: 'equipment_number') String get equipmentNumber => throw _privateConstructorUsedError; @JsonKey(name: 'serial_number') String? get serialNumber => throw _privateConstructorUsedError; String? get category1 => throw _privateConstructorUsedError; String? get category2 => throw _privateConstructorUsedError; String? get category3 => throw _privateConstructorUsedError; String get manufacturer => throw _privateConstructorUsedError; @JsonKey(name: 'model_name') String? get modelName => throw _privateConstructorUsedError; String? get barcode => throw _privateConstructorUsedError; String get status => throw _privateConstructorUsedError; @JsonKey(name: 'company_id') int? get companyId => throw _privateConstructorUsedError; @JsonKey(name: 'warehouse_location_id') int? get warehouseLocationId => throw _privateConstructorUsedError; @JsonKey(name: 'purchase_date') String? get purchaseDate => throw _privateConstructorUsedError; @JsonKey(name: 'purchase_price') double? get purchasePrice => throw _privateConstructorUsedError; @JsonKey(name: 'last_inspection_date') String? get lastInspectionDate => throw _privateConstructorUsedError; @JsonKey(name: 'next_inspection_date') String? get nextInspectionDate => throw _privateConstructorUsedError; String? get remark => throw _privateConstructorUsedError; @JsonKey(name: 'created_at') DateTime? get createdAt => throw _privateConstructorUsedError; @JsonKey(name: 'updated_at') DateTime? get updatedAt => throw _privateConstructorUsedError; /// Serializes this EquipmentDto to a JSON map. Map toJson() => throw _privateConstructorUsedError; /// Create a copy of EquipmentDto /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) $EquipmentDtoCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $EquipmentDtoCopyWith<$Res> { factory $EquipmentDtoCopyWith( EquipmentDto value, $Res Function(EquipmentDto) then) = _$EquipmentDtoCopyWithImpl<$Res, EquipmentDto>; @useResult $Res call( {int id, @JsonKey(name: 'equipment_number') String equipmentNumber, @JsonKey(name: 'serial_number') String? serialNumber, String? category1, String? category2, String? category3, String manufacturer, @JsonKey(name: 'model_name') String? modelName, String? barcode, String status, @JsonKey(name: 'company_id') int? companyId, @JsonKey(name: 'warehouse_location_id') int? warehouseLocationId, @JsonKey(name: 'purchase_date') String? purchaseDate, @JsonKey(name: 'purchase_price') double? purchasePrice, @JsonKey(name: 'last_inspection_date') String? lastInspectionDate, @JsonKey(name: 'next_inspection_date') String? nextInspectionDate, String? remark, @JsonKey(name: 'created_at') DateTime? createdAt, @JsonKey(name: 'updated_at') DateTime? updatedAt}); } /// @nodoc class _$EquipmentDtoCopyWithImpl<$Res, $Val extends EquipmentDto> implements $EquipmentDtoCopyWith<$Res> { _$EquipmentDtoCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; // ignore: unused_field final $Res Function($Val) _then; /// Create a copy of EquipmentDto /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? id = null, Object? equipmentNumber = null, Object? serialNumber = freezed, Object? category1 = freezed, Object? category2 = freezed, Object? category3 = freezed, Object? manufacturer = null, Object? modelName = freezed, Object? barcode = freezed, Object? status = null, Object? companyId = freezed, Object? warehouseLocationId = freezed, Object? purchaseDate = freezed, Object? purchasePrice = freezed, Object? lastInspectionDate = freezed, Object? nextInspectionDate = freezed, Object? remark = freezed, Object? createdAt = freezed, Object? updatedAt = freezed, }) { return _then(_value.copyWith( id: null == id ? _value.id : id // ignore: cast_nullable_to_non_nullable as int, equipmentNumber: null == equipmentNumber ? _value.equipmentNumber : equipmentNumber // ignore: cast_nullable_to_non_nullable as String, serialNumber: freezed == serialNumber ? _value.serialNumber : serialNumber // ignore: cast_nullable_to_non_nullable as String?, category1: freezed == category1 ? _value.category1 : category1 // ignore: cast_nullable_to_non_nullable as String?, category2: freezed == category2 ? _value.category2 : category2 // ignore: cast_nullable_to_non_nullable as String?, category3: freezed == category3 ? _value.category3 : category3 // ignore: cast_nullable_to_non_nullable as String?, manufacturer: null == manufacturer ? _value.manufacturer : manufacturer // ignore: cast_nullable_to_non_nullable as String, modelName: freezed == modelName ? _value.modelName : modelName // ignore: cast_nullable_to_non_nullable as String?, barcode: freezed == barcode ? _value.barcode : barcode // ignore: cast_nullable_to_non_nullable as String?, status: null == 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?, purchaseDate: freezed == purchaseDate ? _value.purchaseDate : purchaseDate // ignore: cast_nullable_to_non_nullable as String?, purchasePrice: freezed == purchasePrice ? _value.purchasePrice : purchasePrice // ignore: cast_nullable_to_non_nullable as double?, lastInspectionDate: freezed == lastInspectionDate ? _value.lastInspectionDate : lastInspectionDate // ignore: cast_nullable_to_non_nullable as String?, nextInspectionDate: freezed == nextInspectionDate ? _value.nextInspectionDate : nextInspectionDate // ignore: cast_nullable_to_non_nullable as String?, remark: freezed == remark ? _value.remark : remark // ignore: cast_nullable_to_non_nullable as String?, createdAt: freezed == createdAt ? _value.createdAt : createdAt // ignore: cast_nullable_to_non_nullable as DateTime?, updatedAt: freezed == updatedAt ? _value.updatedAt : updatedAt // ignore: cast_nullable_to_non_nullable as DateTime?, ) as $Val); } } /// @nodoc abstract class _$$EquipmentDtoImplCopyWith<$Res> implements $EquipmentDtoCopyWith<$Res> { factory _$$EquipmentDtoImplCopyWith( _$EquipmentDtoImpl value, $Res Function(_$EquipmentDtoImpl) then) = __$$EquipmentDtoImplCopyWithImpl<$Res>; @override @useResult $Res call( {int id, @JsonKey(name: 'equipment_number') String equipmentNumber, @JsonKey(name: 'serial_number') String? serialNumber, String? category1, String? category2, String? category3, String manufacturer, @JsonKey(name: 'model_name') String? modelName, String? barcode, String status, @JsonKey(name: 'company_id') int? companyId, @JsonKey(name: 'warehouse_location_id') int? warehouseLocationId, @JsonKey(name: 'purchase_date') String? purchaseDate, @JsonKey(name: 'purchase_price') double? purchasePrice, @JsonKey(name: 'last_inspection_date') String? lastInspectionDate, @JsonKey(name: 'next_inspection_date') String? nextInspectionDate, String? remark, @JsonKey(name: 'created_at') DateTime? createdAt, @JsonKey(name: 'updated_at') DateTime? updatedAt}); } /// @nodoc class __$$EquipmentDtoImplCopyWithImpl<$Res> extends _$EquipmentDtoCopyWithImpl<$Res, _$EquipmentDtoImpl> implements _$$EquipmentDtoImplCopyWith<$Res> { __$$EquipmentDtoImplCopyWithImpl( _$EquipmentDtoImpl _value, $Res Function(_$EquipmentDtoImpl) _then) : super(_value, _then); /// Create a copy of EquipmentDto /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? id = null, Object? equipmentNumber = null, Object? serialNumber = freezed, Object? category1 = freezed, Object? category2 = freezed, Object? category3 = freezed, Object? manufacturer = null, Object? modelName = freezed, Object? barcode = freezed, Object? status = null, Object? companyId = freezed, Object? warehouseLocationId = freezed, Object? purchaseDate = freezed, Object? purchasePrice = freezed, Object? lastInspectionDate = freezed, Object? nextInspectionDate = freezed, Object? remark = freezed, Object? createdAt = freezed, Object? updatedAt = freezed, }) { return _then(_$EquipmentDtoImpl( id: null == id ? _value.id : id // ignore: cast_nullable_to_non_nullable as int, equipmentNumber: null == equipmentNumber ? _value.equipmentNumber : equipmentNumber // ignore: cast_nullable_to_non_nullable as String, serialNumber: freezed == serialNumber ? _value.serialNumber : serialNumber // ignore: cast_nullable_to_non_nullable as String?, category1: freezed == category1 ? _value.category1 : category1 // ignore: cast_nullable_to_non_nullable as String?, category2: freezed == category2 ? _value.category2 : category2 // ignore: cast_nullable_to_non_nullable as String?, category3: freezed == category3 ? _value.category3 : category3 // ignore: cast_nullable_to_non_nullable as String?, manufacturer: null == manufacturer ? _value.manufacturer : manufacturer // ignore: cast_nullable_to_non_nullable as String, modelName: freezed == modelName ? _value.modelName : modelName // ignore: cast_nullable_to_non_nullable as String?, barcode: freezed == barcode ? _value.barcode : barcode // ignore: cast_nullable_to_non_nullable as String?, status: null == 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?, purchaseDate: freezed == purchaseDate ? _value.purchaseDate : purchaseDate // ignore: cast_nullable_to_non_nullable as String?, purchasePrice: freezed == purchasePrice ? _value.purchasePrice : purchasePrice // ignore: cast_nullable_to_non_nullable as double?, lastInspectionDate: freezed == lastInspectionDate ? _value.lastInspectionDate : lastInspectionDate // ignore: cast_nullable_to_non_nullable as String?, nextInspectionDate: freezed == nextInspectionDate ? _value.nextInspectionDate : nextInspectionDate // ignore: cast_nullable_to_non_nullable as String?, remark: freezed == remark ? _value.remark : remark // ignore: cast_nullable_to_non_nullable as String?, createdAt: freezed == createdAt ? _value.createdAt : createdAt // ignore: cast_nullable_to_non_nullable as DateTime?, updatedAt: freezed == updatedAt ? _value.updatedAt : updatedAt // ignore: cast_nullable_to_non_nullable as DateTime?, )); } } /// @nodoc @JsonSerializable() class _$EquipmentDtoImpl implements _EquipmentDto { const _$EquipmentDtoImpl( {required this.id, @JsonKey(name: 'equipment_number') required this.equipmentNumber, @JsonKey(name: 'serial_number') this.serialNumber, this.category1, this.category2, this.category3, required this.manufacturer, @JsonKey(name: 'model_name') this.modelName, this.barcode, required this.status, @JsonKey(name: 'company_id') this.companyId, @JsonKey(name: 'warehouse_location_id') this.warehouseLocationId, @JsonKey(name: 'purchase_date') this.purchaseDate, @JsonKey(name: 'purchase_price') this.purchasePrice, @JsonKey(name: 'last_inspection_date') this.lastInspectionDate, @JsonKey(name: 'next_inspection_date') this.nextInspectionDate, this.remark, @JsonKey(name: 'created_at') this.createdAt, @JsonKey(name: 'updated_at') this.updatedAt}); factory _$EquipmentDtoImpl.fromJson(Map json) => _$$EquipmentDtoImplFromJson(json); @override final int id; @override @JsonKey(name: 'equipment_number') final String equipmentNumber; @override @JsonKey(name: 'serial_number') final String? serialNumber; @override final String? category1; @override final String? category2; @override final String? category3; @override final String manufacturer; @override @JsonKey(name: 'model_name') final String? modelName; @override final String? barcode; @override final String status; @override @JsonKey(name: 'company_id') final int? companyId; @override @JsonKey(name: 'warehouse_location_id') final int? warehouseLocationId; @override @JsonKey(name: 'purchase_date') final String? purchaseDate; @override @JsonKey(name: 'purchase_price') final double? purchasePrice; @override @JsonKey(name: 'last_inspection_date') final String? lastInspectionDate; @override @JsonKey(name: 'next_inspection_date') final String? nextInspectionDate; @override final String? remark; @override @JsonKey(name: 'created_at') final DateTime? createdAt; @override @JsonKey(name: 'updated_at') final DateTime? updatedAt; @override String toString() { return 'EquipmentDto(id: $id, equipmentNumber: $equipmentNumber, serialNumber: $serialNumber, category1: $category1, category2: $category2, category3: $category3, manufacturer: $manufacturer, modelName: $modelName, barcode: $barcode, status: $status, companyId: $companyId, warehouseLocationId: $warehouseLocationId, purchaseDate: $purchaseDate, purchasePrice: $purchasePrice, lastInspectionDate: $lastInspectionDate, nextInspectionDate: $nextInspectionDate, remark: $remark, createdAt: $createdAt, updatedAt: $updatedAt)'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$EquipmentDtoImpl && (identical(other.id, id) || other.id == id) && (identical(other.equipmentNumber, equipmentNumber) || other.equipmentNumber == equipmentNumber) && (identical(other.serialNumber, serialNumber) || other.serialNumber == serialNumber) && (identical(other.category1, category1) || other.category1 == category1) && (identical(other.category2, category2) || other.category2 == category2) && (identical(other.category3, category3) || other.category3 == category3) && (identical(other.manufacturer, manufacturer) || other.manufacturer == manufacturer) && (identical(other.modelName, modelName) || other.modelName == modelName) && (identical(other.barcode, barcode) || other.barcode == barcode) && (identical(other.status, status) || other.status == status) && (identical(other.companyId, companyId) || other.companyId == companyId) && (identical(other.warehouseLocationId, warehouseLocationId) || other.warehouseLocationId == warehouseLocationId) && (identical(other.purchaseDate, purchaseDate) || other.purchaseDate == purchaseDate) && (identical(other.purchasePrice, purchasePrice) || other.purchasePrice == purchasePrice) && (identical(other.lastInspectionDate, lastInspectionDate) || other.lastInspectionDate == lastInspectionDate) && (identical(other.nextInspectionDate, nextInspectionDate) || other.nextInspectionDate == nextInspectionDate) && (identical(other.remark, remark) || other.remark == remark) && (identical(other.createdAt, createdAt) || other.createdAt == createdAt) && (identical(other.updatedAt, updatedAt) || other.updatedAt == updatedAt)); } @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hashAll([ runtimeType, id, equipmentNumber, serialNumber, category1, category2, category3, manufacturer, modelName, barcode, status, companyId, warehouseLocationId, purchaseDate, purchasePrice, lastInspectionDate, nextInspectionDate, remark, createdAt, updatedAt ]); /// Create a copy of EquipmentDto /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$EquipmentDtoImplCopyWith<_$EquipmentDtoImpl> get copyWith => __$$EquipmentDtoImplCopyWithImpl<_$EquipmentDtoImpl>(this, _$identity); @override Map toJson() { return _$$EquipmentDtoImplToJson( this, ); } } abstract class _EquipmentDto implements EquipmentDto { const factory _EquipmentDto( {required final int id, @JsonKey(name: 'equipment_number') required final String equipmentNumber, @JsonKey(name: 'serial_number') final String? serialNumber, final String? category1, final String? category2, final String? category3, required final String manufacturer, @JsonKey(name: 'model_name') final String? modelName, final String? barcode, required final String status, @JsonKey(name: 'company_id') final int? companyId, @JsonKey(name: 'warehouse_location_id') final int? warehouseLocationId, @JsonKey(name: 'purchase_date') final String? purchaseDate, @JsonKey(name: 'purchase_price') final double? purchasePrice, @JsonKey(name: 'last_inspection_date') final String? lastInspectionDate, @JsonKey(name: 'next_inspection_date') final String? nextInspectionDate, final String? remark, @JsonKey(name: 'created_at') final DateTime? createdAt, @JsonKey(name: 'updated_at') final DateTime? updatedAt}) = _$EquipmentDtoImpl; factory _EquipmentDto.fromJson(Map json) = _$EquipmentDtoImpl.fromJson; @override int get id; @override @JsonKey(name: 'equipment_number') String get equipmentNumber; @override @JsonKey(name: 'serial_number') String? get serialNumber; @override String? get category1; @override String? get category2; @override String? get category3; @override String get manufacturer; @override @JsonKey(name: 'model_name') String? get modelName; @override String? get barcode; @override String get status; @override @JsonKey(name: 'company_id') int? get companyId; @override @JsonKey(name: 'warehouse_location_id') int? get warehouseLocationId; @override @JsonKey(name: 'purchase_date') String? get purchaseDate; @override @JsonKey(name: 'purchase_price') double? get purchasePrice; @override @JsonKey(name: 'last_inspection_date') String? get lastInspectionDate; @override @JsonKey(name: 'next_inspection_date') String? get nextInspectionDate; @override String? get remark; @override @JsonKey(name: 'created_at') DateTime? get createdAt; @override @JsonKey(name: 'updated_at') DateTime? get updatedAt; /// Create a copy of EquipmentDto /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) _$$EquipmentDtoImplCopyWith<_$EquipmentDtoImpl> get copyWith => throw _privateConstructorUsedError; }