Join Slack
Powered by
Our model has multi fields with multiple name, I w...
# multiplatform
h
Henry
06/15/2021, 2:03 AM
Our model has multi fields with multiple name, I want to use multi serial name, but I can not, any way to do that? thank alot
m
Mayank
06/15/2021, 8:09 AM
Hi Henry You can use JsonNames annotation to provide alternate names. Refer
https://blog.jetbrains.com/kotlin/2021/05/kotlinx-serialization-1-2-released/#alt-names
🙌 1
Open in Slack
Previous
Next