Bug Report Checklist
Description
When generateOneOfAnyOfWrappers option used in kotlin generator and gson serialization library, model classes contains CustomTypeAdapterFactory, which should be used to correctly serialize/deserialize oneOf/anyOf parameters. But this factories are not used out of the box.
openapi-generator version
7.10.0
Suggest a fix
We should just generate this factories registration in Serializer.kt, like in jvm-retrofit2 ApiClient