my class looks roughly like this: ```@Serializable...
# serialization
c
my class looks roughly like this:
Copy code
@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 */
}