I think no one mentioned yet that data classes will get you a free implementation of toString()
which may be all you need… most of the time it’s only useful to inspect the contents of classes that represent some data, in which case you should probably already be using data classes.