// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'warehouse_dto.dart';

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

_$CreateWarehouseLocationRequestImpl
    _$$CreateWarehouseLocationRequestImplFromJson(Map<String, dynamic> json) =>
        _$CreateWarehouseLocationRequestImpl(
          name: json['name'] as String,
          address: json['address'] as String?,
          managerName: json['manager_name'] as String?,
          managerPhone: json['manager_phone'] as String?,
          capacity: (json['capacity'] as num?)?.toInt(),
          remark: json['remark'] as String?,
        );

Map<String, dynamic> _$$CreateWarehouseLocationRequestImplToJson(
        _$CreateWarehouseLocationRequestImpl instance) =>
    <String, dynamic>{
      'name': instance.name,
      'address': instance.address,
      'manager_name': instance.managerName,
      'manager_phone': instance.managerPhone,
      'capacity': instance.capacity,
      'remark': instance.remark,
    };

_$UpdateWarehouseLocationRequestImpl
    _$$UpdateWarehouseLocationRequestImplFromJson(Map<String, dynamic> json) =>
        _$UpdateWarehouseLocationRequestImpl(
          name: json['name'] as String?,
          address: json['address'] as String?,
          managerName: json['manager_name'] as String?,
          managerPhone: json['manager_phone'] as String?,
          capacity: (json['capacity'] as num?)?.toInt(),
          remark: json['remark'] as String?,
        );

Map<String, dynamic> _$$UpdateWarehouseLocationRequestImplToJson(
        _$UpdateWarehouseLocationRequestImpl instance) =>
    <String, dynamic>{
      'name': instance.name,
      'address': instance.address,
      'manager_name': instance.managerName,
      'manager_phone': instance.managerPhone,
      'capacity': instance.capacity,
      'remark': instance.remark,
    };

_$WarehouseLocationDtoImpl _$$WarehouseLocationDtoImplFromJson(
        Map<String, dynamic> json) =>
    _$WarehouseLocationDtoImpl(
      id: (json['id'] as num).toInt(),
      name: json['name'] as String,
      address: json['address'] as String?,
      managerName: json['manager_name'] as String?,
      managerPhone: json['manager_phone'] as String?,
      capacity: (json['capacity'] as num?)?.toInt(),
      remark: json['remark'] as String?,
      isActive: json['is_active'] as bool,
      createdAt: DateTime.parse(json['created_at'] as String),
    );

Map<String, dynamic> _$$WarehouseLocationDtoImplToJson(
        _$WarehouseLocationDtoImpl instance) =>
    <String, dynamic>{
      'id': instance.id,
      'name': instance.name,
      'address': instance.address,
      'manager_name': instance.managerName,
      'manager_phone': instance.managerPhone,
      'capacity': instance.capacity,
      'remark': instance.remark,
      'is_active': instance.isActive,
      'created_at': instance.createdAt.toIso8601String(),
    };

_$WarehouseLocationListDtoImpl _$$WarehouseLocationListDtoImplFromJson(
        Map<String, dynamic> json) =>
    _$WarehouseLocationListDtoImpl(
      items: (json['items'] as List<dynamic>)
          .map((e) => WarehouseLocationDto.fromJson(e as Map<String, dynamic>))
          .toList(),
      total: (json['total'] as num).toInt(),
      page: (json['page'] as num).toInt(),
      perPage: (json['per_page'] as num).toInt(),
      totalPages: (json['total_pages'] as num).toInt(),
    );

Map<String, dynamic> _$$WarehouseLocationListDtoImplToJson(
        _$WarehouseLocationListDtoImpl instance) =>
    <String, dynamic>{
      'items': instance.items,
      'total': instance.total,
      'page': instance.page,
      'per_page': instance.perPage,
      'total_pages': instance.totalPages,
    };

_$WarehouseCapacityInfoImpl _$$WarehouseCapacityInfoImplFromJson(
        Map<String, dynamic> json) =>
    _$WarehouseCapacityInfoImpl(
      warehouseId: (json['warehouse_id'] as num).toInt(),
      totalCapacity: (json['total_capacity'] as num).toInt(),
      usedCapacity: (json['used_capacity'] as num).toInt(),
      availableCapacity: (json['available_capacity'] as num).toInt(),
      usagePercentage: (json['usage_percentage'] as num).toDouble(),
      equipmentCount: (json['equipment_count'] as num).toInt(),
    );

Map<String, dynamic> _$$WarehouseCapacityInfoImplToJson(
        _$WarehouseCapacityInfoImpl instance) =>
    <String, dynamic>{
      'warehouse_id': instance.warehouseId,
      'total_capacity': instance.totalCapacity,
      'used_capacity': instance.usedCapacity,
      'available_capacity': instance.availableCapacity,
      'usage_percentage': instance.usagePercentage,
      'equipment_count': instance.equipmentCount,
    };

_$WarehouseEquipmentDtoImpl _$$WarehouseEquipmentDtoImplFromJson(
        Map<String, dynamic> json) =>
    _$WarehouseEquipmentDtoImpl(
      id: (json['id'] as num).toInt(),
      equipmentNumber: json['equipment_number'] as String,
      manufacturer: json['manufacturer'] as String?,
      equipmentName: json['equipment_name'] as String?,
      serialNumber: json['serial_number'] as String?,
      quantity: (json['quantity'] as num).toInt(),
      status: json['status'] as String?,
      warehouseLocationId: (json['warehouse_location_id'] as num).toInt(),
      storedAt: DateTime.parse(json['stored_at'] as String),
    );

Map<String, dynamic> _$$WarehouseEquipmentDtoImplToJson(
        _$WarehouseEquipmentDtoImpl instance) =>
    <String, dynamic>{
      'id': instance.id,
      'equipment_number': instance.equipmentNumber,
      'manufacturer': instance.manufacturer,
      'equipment_name': instance.equipmentName,
      'serial_number': instance.serialNumber,
      'quantity': instance.quantity,
      'status': instance.status,
      'warehouse_location_id': instance.warehouseLocationId,
      'stored_at': instance.storedAt.toIso8601String(),
    };

_$WarehouseEquipmentListDtoImpl _$$WarehouseEquipmentListDtoImplFromJson(
        Map<String, dynamic> json) =>
    _$WarehouseEquipmentListDtoImpl(
      items: (json['items'] as List<dynamic>)
          .map((e) => WarehouseEquipmentDto.fromJson(e as Map<String, dynamic>))
          .toList(),
      total: (json['total'] as num).toInt(),
      page: (json['page'] as num).toInt(),
      perPage: (json['per_page'] as num).toInt(),
      totalPages: (json['total_pages'] as num).toInt(),
    );

Map<String, dynamic> _$$WarehouseEquipmentListDtoImplToJson(
        _$WarehouseEquipmentListDtoImpl instance) =>
    <String, dynamic>{
      'items': instance.items,
      'total': instance.total,
      'page': instance.page,
      'per_page': instance.perPage,
      'total_pages': instance.totalPages,
    };
