toMapOfStringDouble static method
Converts a dynamic value to a non-nullable map of <String, double>.
d
- The dynamic value to be converted.
def
- The default map value if conversion fails.
Returns a map of <String, double>.
Implementation
static Map<String, double> toMapOfStringDouble(
dynamic d, Map<String, double> def) {
return toMapOfStringDoubleN(d) ?? def;
}