Suppose I have a value class and mark it as `@Seri...
# serialization
m
Suppose I have a value class and mark it as
@Serializable
. Am I right in thinking there should also be a
@SerialName("Foo")
annotation (when there is no custom serializer)?
k
No need
@Serializable
annotation is enough on the class.
@SerialName("Foo")
annotation is for the variable in the class that has to be serialized with that name, it is optional.
👍 1
m
Thanks, you were right. I should rely less on Chat GPT lol!