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
The _bits property in the java models should be declared as private transient int _bits so that the _bits property does not get included when a developer serializes a model to JSON.
The text was updated successfully, but these errors were encountered:
@RicoYao - Will this prevent it from other serialization methods? For instance if you serialize to disk and read back the same model you'd lose the "is set" capabilities right?
@rahul-malik My thinking is that if you read back the model and deserialize it through the generated TypeAdapter, then _bits will be set to the expected value again (because the TypeAdapter uses the Builder which sets _bits).
The
_bits
property in the java models should be declared asprivate transient int _bits
so that the_bits
property does not get included when a developer serializes a model to JSON.The text was updated successfully, but these errors were encountered: