And so your goal is to rewrite them? What is the point? What about the current codebase has business requirements that need it to be rewritten?
The reason for a rewrite is beyond the scope of Dart supporting sane serialisation. There are many reasons; but here is not an appropriate place to detail them.