Map<String, String> normalizeResponseHeader( Map<String, List<String>> resHeaderMap, ) { return resHeaderMap.map((key, value) => MapEntry(key, value.join(';'))); }