List<Map<dynamic, dynamic>> mapsOf(dynamic value) { if (value is List) { return value.whereType<Map>().toList(); } return const []; }