List<dynamic> traverseList(dynamic data, List<String> keys) { return [traverse(data, keys)].expand((x) => x is List ? x : [x]).toList(); }