isStringMap function
Implementation
bool isStringMap(DartType type) {
if (type is! InterfaceType || !type.isDartCoreMap) return false;
if (type.typeArguments.length != 2) return false;
return typeDisplayName(type.typeArguments[0]) == 'String';
}