Use data classes that have the actual named fields...
# random
e
Use data classes that have the actual named fields, and then you will not have to repeat them with Kotlin’s when and smartcast -> so much cleaner code