List asList(Map<String, dynamic>? json, String key, {List? defaultValue}) { if (json == null || !json.containsKey(key)) return defaultValue ?? []; return toList(json[key]); }