Original Presentation: Android - A quick Kotlin Eksperience
This is probably the thing smallest things but has a huge effect on readability of code. A couple things to note is that there’s no new keyword and you don’t need to declare the type.
1.The properties declared in the constructor: this technically is not exclusive to a data class, but it avoids all the boilerplate of getters and setters, in addition to the constructor
2.Provides the equals() & hashCode() functions
3.Provides a copy() method, very useful when we use immutable objects.
The old implementation of Parcelize, required you to write a writeToParcelize class and create a new Creator class and was generally more work than it should have been. The more parameters you had in the Model Class the longer your code would inevitably become