Chris Fillmore
@Serializable class HttpHeaders { private val headers: MutableMap<String, List<String>> = mutableMapOf() fun toMap(): Map<String, List<String>> = headers.toMap() /* other methods to manipulate the map */ }