I'm trying to serialize lambdas into a Room databa...
# serialization
e
I'm trying to serialize lambdas into a Room database table. I've been working on it for a week and have switched from Gson to kotlinx serialization. Has anyone ever come across this. I've tried doing SAM, FunctionalInteface from jdk, and an open class with an open function. Kotlin states that lambdas are serializable by default. I'm performing the serialization for the function types inside of a Converters class
😔 1
😮 1
s
Lambda's are only
<http://java.io|java.io>.Serializable
and generally can only be serialized by java's native serialization framework and not any other
🙌 1
e
Thank you.