If you do the second one as ``` data class Id priv...
# getting-started
r
If you do the second one as
Copy code
data class Id private constructor(val value: String) {
   companion object {
       operator fun invoke(value: String) = Id(value.toLowerCase)
   }
}
you don't need to define the extra function.