// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'equipment_response.dart';

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

_$EquipmentResponseImpl _$$EquipmentResponseImplFromJson(
        Map<String, dynamic> json) =>
    _$EquipmentResponseImpl(
      id: (json['id'] as num).toInt(),
      equipmentNumber: json['equipmentNumber'] as String,
      category1: json['category1'] as String?,
      category2: json['category2'] as String?,
      category3: json['category3'] as String?,
      manufacturer: json['manufacturer'] as String,
      modelName: json['modelName'] as String?,
      serialNumber: json['serialNumber'] as String?,
      barcode: json['barcode'] as String?,
      purchaseDate: json['purchaseDate'] == null
          ? null
          : DateTime.parse(json['purchaseDate'] as String),
      purchasePrice: (json['purchasePrice'] as num?)?.toDouble(),
      status: const EquipmentStatusJsonConverter()
          .fromJson(json['status'] as String),
      currentCompanyId: (json['currentCompanyId'] as num?)?.toInt(),
      currentBranchId: (json['currentBranchId'] as num?)?.toInt(),
      warehouseLocationId: (json['warehouseLocationId'] as num?)?.toInt(),
      lastInspectionDate: json['lastInspectionDate'] == null
          ? null
          : DateTime.parse(json['lastInspectionDate'] as String),
      nextInspectionDate: json['nextInspectionDate'] == null
          ? null
          : DateTime.parse(json['nextInspectionDate'] as String),
      remark: json['remark'] as String?,
      createdAt: DateTime.parse(json['createdAt'] as String),
      updatedAt: DateTime.parse(json['updatedAt'] as String),
      companyName: json['companyName'] as String?,
      branchName: json['branchName'] as String?,
      warehouseName: json['warehouseName'] as String?,
    );

Map<String, dynamic> _$$EquipmentResponseImplToJson(
        _$EquipmentResponseImpl instance) =>
    <String, dynamic>{
      'id': instance.id,
      'equipmentNumber': instance.equipmentNumber,
      'category1': instance.category1,
      'category2': instance.category2,
      'category3': instance.category3,
      'manufacturer': instance.manufacturer,
      'modelName': instance.modelName,
      'serialNumber': instance.serialNumber,
      'barcode': instance.barcode,
      'purchaseDate': instance.purchaseDate?.toIso8601String(),
      'purchasePrice': instance.purchasePrice,
      'status': const EquipmentStatusJsonConverter().toJson(instance.status),
      'currentCompanyId': instance.currentCompanyId,
      'currentBranchId': instance.currentBranchId,
      'warehouseLocationId': instance.warehouseLocationId,
      'lastInspectionDate': instance.lastInspectionDate?.toIso8601String(),
      'nextInspectionDate': instance.nextInspectionDate?.toIso8601String(),
      'remark': instance.remark,
      'createdAt': instance.createdAt.toIso8601String(),
      'updatedAt': instance.updatedAt.toIso8601String(),
      'companyName': instance.companyName,
      'branchName': instance.branchName,
      'warehouseName': instance.warehouseName,
    };
