Created by: agilob
@noordawod @kuhnroyal I attempted to use json_serializable to replace all our manual code. Here's almost finished work, but unfortunately I found a bug in the library
https://github.com/google/json_serializable.dart/issues/784 - google doesn't seem to care too much about handling enums in this library so looks like it won't go any further, unless you have any idea how to fix it manually? Generate _$decode and _$encode on our own?
Here's another attempt to generate enum handling code to produce the same autogenerated code as json_serializer https://github.com/OpenAPITools/openapi-generator/pull/8308 here I hit another bug where complexItem / enum isn't recognised correctly what you can see in second commit
The general direction is to remove our manual work and relay on some library, but I can't find any where enums aren't 3rd class citizens.
Any advice is welcome.
// this is PoC