List<JsonMap> listOfMaps(Object? value) { if (value is! List) return const []; return value .whereType<Map>() .map((item) => Map<String, Object?>.from(item)) .toList(); }