can/should dataclasses be serializable ..?
# android
r
can/should dataclasses be serializable ..?
g
You can implement Serializable or use kotlinx.serialization. Should or not depends on your case. Java Serializable has own set of advantages and disadvantages, so the choice is up to you.
r
Thanks. Found a whole world of pain and issues elsewhere so I can't even think about this now.
g
are you talking about Java Serializable with Data classes?
r
Yes. But I have to work on major refactor of UI classes for powers that be. Thanks.