so I'm trying to create a data holder for a String...
# getting-started
r
so I'm trying to create a data holder for a String, but I want it to automatically convert it to lowercase, is there some syntactic feature I'm missing or can't I use data classes for this use case?
Copy code
data class Id(val value: String) {
    init {
        this.value = value.toLowerCase() // can't reassign value
    }
}