crummy
04/26/2020, 1:38 AMfun getAll(): Collection<User>
I get:
kotlinx.serialization.SerializationException: Can't locate argument-less serializer for class LinkedValues. For generic classes, such as lists, please provide serializer explicitly.
I think I need to somehow indicate that this method should deserialize with User.serializer().list
. But I'm not sure how to do that.crummy
04/26/2020, 1:40 AM@Serializable(with = User.serializer().list)
But the annotation is not applicable to member functions.crummy
04/26/2020, 1:49 AM