Erik
11/03/2023, 4:17 PMcamelCase
(default Kotlin format) names to snake_case
(my default serialized format) the default/automatic using kotlinx.serialization?
E.g. I have
@Serializable
data class Foo(
val bar: Bar
@SerialName("baz_qux")
val bazQux: BazQux
)
I'd like that serial name to be the default / automatic, so that it's unnecessary / implied. I have many data classes with many properties, so it isn't very readable and easy to forget when using @SerialName
for some of the properties (the ones that have multiple words in the name).asdf asdf
11/03/2023, 4:27 PMErik
11/03/2023, 4:32 PM