mapWithMapOfStringsFromJson function
Implementation
Map<String, Map<String, String>> mapWithMapOfStringsFromJson(dynamic json) {
final map = <String, Map<String, String>>{};
if (json is Map && json.isNotEmpty) {
json = json.cast<String, dynamic>(); // ignore: parameter_assignments
for (final entry in json.entries) {
final value = mapCastOfType<String, String>(json, entry.key);
if (value != null) {
map[entry.key] = value;
}
}
}
return map;
}