I've got a data class with an inner LocalDate that...
# serialization
c
I've got a data class with an inner LocalDate that I've annotated with
@Serializable(with = LocalDateSerializer::class)
(LocalDateSerializer is a class I've created.) However, now I'm returning a
Map<LocalDate, foo>
elsewhere and getting an error
Can't locate argument-less serializer for class LocalDate
. How do I annotate this?
I'm returning it like:
Copy code
val map: Map<LocalDate, foo> = ...
call.respond(map)
p
And is it an ide warning or is it actually throwing?
Typically you'd annotate the LocalDate and not the map
b
Yes, so that would be
Map<@Seria... LocalDate, foo>