// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'cache_stats_model.dart';

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

CacheStatsModel _$CacheStatsModelFromJson(Map<String, dynamic> json) =>
    CacheStatsModel(
      totalSizeBytes: (json['totalSizeBytes'] as num?)?.toInt(),
      totalSizeFormatted: json['totalSizeFormatted'] as String?,
      totalEntries: (json['totalEntries'] as num?)?.toInt(),
      hitRate: (json['hitRate'] as num?)?.toDouble(),
      hits: (json['hits'] as num?)?.toInt(),
      misses: (json['misses'] as num?)?.toInt(),
      lastCleared: json['lastCleared'] == null
          ? null
          : DateTime.parse(json['lastCleared'] as String),
    );

Map<String, dynamic> _$CacheStatsModelToJson(CacheStatsModel instance) =>
    <String, dynamic>{
      'totalSizeBytes': instance.totalSizeBytes,
      'totalSizeFormatted': instance.totalSizeFormatted,
      'totalEntries': instance.totalEntries,
      'hitRate': instance.hitRate,
      'hits': instance.hits,
      'misses': instance.misses,
      'lastCleared': instance.lastCleared?.toIso8601String(),
    };
