dynamicToMap<K, V> static method
Implementation
static Map<K, V>? dynamicToMap<K, V>(dynamic value) {
if (value == null) return null;
if (value is Map) return Map<K, V>.from(value);
if (value is List && value.isNotEmpty) {
return dynamicToMap<K, V>(value.first);
}
return null;
}