EnumWithCaseConventionSerializer
constructor(enumName: String, entries: EnumEntries<E>, pgConvention: CaseConvention = CaseConvention.SNAKE_CASE_UPPER, kotlinConvention: CaseConvention = CaseConvention.PASCAL_CASE)
Parameters
enumName
What to call it in the descriptor - the class's own name is the obvious choice, and it has to be distinct from every other serializer's in the same format.
entries
Its constants, which is YourEnum.entries.
pgConvention
How the labels are written in PostgreSQL.
kotlinConvention
How the constants are written in Kotlin.
Type Parameters
E
The enum being written.