// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'equipment_list_dto.dart';

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

_$EquipmentListDtoImpl _$$EquipmentListDtoImplFromJson(
        Map<String, dynamic> json) =>
    _$EquipmentListDtoImpl(
      id: (json['id'] as num).toInt(),
      equipmentNumber: json['equipment_number'] as String,
      manufacturer: json['manufacturer'] as String,
      modelName: json['model_name'] as String?,
      serialNumber: json['serial_number'] as String?,
      status: json['status'] as String,
      companyId: (json['company_id'] as num?)?.toInt(),
      warehouseLocationId: (json['warehouse_location_id'] as num?)?.toInt(),
      createdAt: DateTime.parse(json['created_at'] as String),
      companyName: json['company_name'] as String?,
      warehouseName: json['warehouse_name'] as String?,
    );

Map<String, dynamic> _$$EquipmentListDtoImplToJson(
        _$EquipmentListDtoImpl instance) =>
    <String, dynamic>{
      'id': instance.id,
      'equipment_number': instance.equipmentNumber,
      'manufacturer': instance.manufacturer,
      'model_name': instance.modelName,
      'serial_number': instance.serialNumber,
      'status': instance.status,
      'company_id': instance.companyId,
      'warehouse_location_id': instance.warehouseLocationId,
      'created_at': instance.createdAt.toIso8601String(),
      'company_name': instance.companyName,
      'warehouse_name': instance.warehouseName,
    };

_$EquipmentListResponseDtoImpl _$$EquipmentListResponseDtoImplFromJson(
        Map<String, dynamic> json) =>
    _$EquipmentListResponseDtoImpl(
      items: (json['items'] as List<dynamic>)
          .map((e) => EquipmentListDto.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> _$$EquipmentListResponseDtoImplToJson(
        _$EquipmentListResponseDtoImpl instance) =>
    <String, dynamic>{
      'items': instance.items,
      'total': instance.total,
      'page': instance.page,
      'per_page': instance.perPage,
      'total_pages': instance.totalPages,
    };
