listIn static method
The stores listed in an app's status.
Implementation
static List<LiveStore> listIn(Map<String, Object?> status) {
final Object? stores = status['stores'];
return [
if (stores is List)
for (final Object? store in stores)
if (store is Map && store['id'] is String)
LiveStore(
id: store['id'] as String,
width: _int(store['width']) ?? 0,
height: _int(store['height']) ?? 0,
label: store['label'] is String ? store['label'] as String : null,
),
];
}