// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'overview_stats.dart';

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

_$OverviewStatsImpl _$$OverviewStatsImplFromJson(Map<String, dynamic> json) =>
    _$OverviewStatsImpl(
      totalCompanies: (json['total_companies'] as num).toInt(),
      activeCompanies: (json['active_companies'] as num).toInt(),
      totalUsers: (json['total_users'] as num).toInt(),
      activeUsers: (json['active_users'] as num).toInt(),
      totalEquipment: (json['total_equipment'] as num).toInt(),
      availableEquipment: (json['available_equipment'] as num).toInt(),
      inUseEquipment: (json['in_use_equipment'] as num).toInt(),
      maintenanceEquipment: (json['maintenance_equipment'] as num).toInt(),
      totalLicenses: (json['total_licenses'] as num).toInt(),
      activeLicenses: (json['active_licenses'] as num).toInt(),
      expiringLicensesCount: (json['expiring_licenses_count'] as num).toInt(),
      expiredLicensesCount: (json['expired_licenses_count'] as num).toInt(),
      totalWarehouseLocations:
          (json['total_warehouse_locations'] as num).toInt(),
      activeWarehouseLocations:
          (json['active_warehouse_locations'] as num).toInt(),
      totalRentals: (json['total_rentals'] as num?)?.toInt() ?? 0,
      activeRentals: (json['active_rentals'] as num?)?.toInt() ?? 0,
    );

Map<String, dynamic> _$$OverviewStatsImplToJson(_$OverviewStatsImpl instance) =>
    <String, dynamic>{
      'total_companies': instance.totalCompanies,
      'active_companies': instance.activeCompanies,
      'total_users': instance.totalUsers,
      'active_users': instance.activeUsers,
      'total_equipment': instance.totalEquipment,
      'available_equipment': instance.availableEquipment,
      'in_use_equipment': instance.inUseEquipment,
      'maintenance_equipment': instance.maintenanceEquipment,
      'total_licenses': instance.totalLicenses,
      'active_licenses': instance.activeLicenses,
      'expiring_licenses_count': instance.expiringLicensesCount,
      'expired_licenses_count': instance.expiredLicensesCount,
      'total_warehouse_locations': instance.totalWarehouseLocations,
      'active_warehouse_locations': instance.activeWarehouseLocations,
      'total_rentals': instance.totalRentals,
      'active_rentals': instance.activeRentals,
    };
