Map<String, String> toMap() { final map = <String, String>{}; _headers.forEach((key, value) { map[key] = value.join(','); }); return map; }