List<T>? tryGetList<T>(String key) { if (!containsKey(key)){ return null; } return (this[key] as List).cast<T>(); }