Map<String, dynamic>? getCachedClass(String key) { dynamic cachedObject = _cache[key]; if (cachedObject is Map<String, dynamic>) { return cachedObject; } return null; }