toMap static method
dynamic
toMap(
- dynamic value
Converts value into map object or returns empty map when conversion is not possible
value
the value to convert. Returns map object or empty map when conversion is not supported.
See toNullableMap
Implementation
static dynamic toMap(value) {
var result = RecursiveMapConverter.toNullableMap(value);
return result ?? <String, dynamic>{};
}