I have a data class which has 8 mandatory non null...
# announcements
n
I have a data class which has 8 mandatory non nullable fields, and another 8 fields which are default set to empty string. This data class represents a request to an external API, as such stuck with that. In Kotlin, I can use named parameters and it doesn’t look that ugly, however this class will also be used from java code. In java I would have probably used builder pattern, since even with the overloads generated for the params set to default values, the 6 arguments to a constructor can be messy. What can be done to make it better? Is there any better way for doing this? Posted in #getting-started