If your class is literally `data class MessageInde...
# announcements
k
If your class is literally
data class MessageIndex(val phoneType: String)
use the first solution. If it has a slow constructor that makes eg. network calls, reads disk, ... consider using the second. (With "balancing act" I mean that it's not clear which one is faster and that it may depend on the situation)