asMapOfString function

Map<String, String>? asMapOfString(
  1. Object? o
)

Returns o as a Map<String,String>. Converts it if needed.

Implementation

Map<String, String>? asMapOfString(Object? o) {
  if (o == null) return null;
  var m = o as Map;
  return m.map((k, v) => MapEntry('$k', '$v'));
}