I am sorry the new release complicates things for you. However, nicer solutions may be at hand. Have you ever considered using OpenAPI to define your models/APIs? Using the OpenAPI generator you can easily create all models, encoders and decoders automatically. We use it to define our APIs and generate both backend and frontend code from it.

code of conduct - report abuse