PgEnumSerializer
internal class PgEnumSerializer(enumClass: KClass<*>, registration: PgEnumRegistration) : KSerializer<Any>
Writes a registered enum into JSON under its PostgreSQL label, as the driver writes it in an enum column, and reads it back. Built from the registration, so an enum named at registerEnum and one found by @PgEnumType are covered alike.
Parameters
registration
Where the two naming conventions come from.