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