toSimpleMap method
Converts values to a simple String -> String Map. When multiple header values are present, only the last value is is used.
Implementation
Map<String, String> toSimpleMap() {
final result = <String, String>{};
_values.forEach((String header, List<String> values) {
result[header] = values.last;
});
return result;
}