List<TGenericType>? getList<TGenericType>(String key) { final value = get(key); if (value is List) { return value.cast<TGenericType>().toList(); } return null; }