Open coderbuzz opened 6 years ago
This is unrelated to library
Gson ignores field that are marked with transient
java keyword.
In Kotlin you can annotate generated property like this:
@get:Transient
val preferences: SharedPreferences = activity.getPreferences(Context.MODE_PRIVATE)
Hi,
What Kotlin's field modifier that compatible with Java Modifier.PRIVATE, Modifier.PROTECTED, Modifier.PUBLIC?
I tried with the following
But preferences field still included on the json output
Thanks