You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 26, 2021. It is now read-only.
Unfortunately, stag does not currently support immutable kotlin data models. It relies on mutability, so your properties need to be var not val. I would suggest you switch to Moshi as it has native support for Kotlin, unlike Gson and Stag.
Issue Summary
When trying to use a kotlin data class, I am unable to generate the convertors.
For example using the class
Gives the error
The generated class for this data class looks like
Even with default values I still have this issue
The text was updated successfully, but these errors were encountered: