// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'equipment_dto.dart';

// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************

_$EquipmentDtoImpl _$$EquipmentDtoImplFromJson(Map<String, dynamic> json) =>
    _$EquipmentDtoImpl(
      id: (json['id'] as num).toInt(),
      equipmentNumber: json['equipment_number'] as String,
      serialNumber: json['serial_number'] as String?,
      category1: json['category1'] as String?,
      category2: json['category2'] as String?,
      category3: json['category3'] as String?,
      manufacturer: json['manufacturer'] as String,
      modelName: json['model_name'] as String?,
      barcode: json['barcode'] as String?,
      status: json['status'] as String,
      companyId: (json['company_id'] as num?)?.toInt(),
      warehouseLocationId: (json['warehouse_location_id'] as num?)?.toInt(),
      purchaseDate: json['purchase_date'] as String?,
      purchasePrice: (json['purchase_price'] as num?)?.toDouble(),
      lastInspectionDate: json['last_inspection_date'] as String?,
      nextInspectionDate: json['next_inspection_date'] as String?,
      remark: json['remark'] as String?,
      createdAt: json['created_at'] == null
          ? null
          : DateTime.parse(json['created_at'] as String),
      updatedAt: json['updated_at'] == null
          ? null
          : DateTime.parse(json['updated_at'] as String),
    );

Map<String, dynamic> _$$EquipmentDtoImplToJson(_$EquipmentDtoImpl instance) =>
    <String, dynamic>{
      'id': instance.id,
      'equipment_number': instance.equipmentNumber,
      'serial_number': instance.serialNumber,
      'category1': instance.category1,
      'category2': instance.category2,
      'category3': instance.category3,
      'manufacturer': instance.manufacturer,
      'model_name': instance.modelName,
      'barcode': instance.barcode,
      'status': instance.status,
      'company_id': instance.companyId,
      'warehouse_location_id': instance.warehouseLocationId,
      'purchase_date': instance.purchaseDate,
      'purchase_price': instance.purchasePrice,
      'last_inspection_date': instance.lastInspectionDate,
      'next_inspection_date': instance.nextInspectionDate,
      'remark': instance.remark,
      'created_at': instance.createdAt?.toIso8601String(),
      'updated_at': instance.updatedAt?.toIso8601String(),
    };
