CacheInfo.fromJson constructor

CacheInfo.fromJson(
  1. Map<String, dynamic> jsonSerialization
)

Implementation

factory CacheInfo.fromJson(Map<String, dynamic> jsonSerialization) {
  return CacheInfo(
    numEntries: jsonSerialization['numEntries'] as int,
    maxEntries: jsonSerialization['maxEntries'] as int,
    keys: (jsonSerialization['keys'] as List?)
        ?.map((e) => e as String)
        .toList(),
  );
}