toMapOfStringString static method

Map<String, String> toMapOfStringString(
  1. dynamic d,
  2. Map<String, String> def
)

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;
}