dave0809/28/2023, 3:57 PM
and I'd like to map it to:
http-clients: client-1: url: ...
data class Configs(val httpClients: List<HttpClientConfig>) data class HttpClientConfig(val name: String, val url: String) // Is there some kind of annotation to pull the name 'client-1' out from the map key and use it as name here and have the result as a list? Or even: data class Configs(val httpClients: Map<String, HttpClientConfig>) // And still not having to specify name in client-1 configs since it can be pulled in from the key...?