https://kotlinlang.org logo
#serialization
Title
# serialization
k

Karlo Lozovina

08/14/2020, 1:43 PM
is there a way to skip repeating the
@Serializable(with = ...)
annotation on every field? Can I somehow specify my custom serializer for a class in a global way?
d

Dominaezzz

08/14/2020, 1:47 PM
You can do
UseSerializers
for and entire file.
k

Karlo Lozovina

08/14/2020, 2:04 PM
thanks, it'll work... too bad I cant specify it on a package level...
⬆️ 1