dart_mappable icon indicating copy to clipboard operation
dart_mappable copied to clipboard

Enum fromJson

Open jayjah opened this issue 5 months ago • 0 comments

Hello out there!

I am wondering, no generated Enum class include a static fromJson method? Why not? How to migrate e.G. from freezed? Do I have to manually write those for every Enum? What if those Enum classes are generated as well, e.G. from a swagger api? That would mean, I have to edit a generated file and that's a just simple: No-GO! In the docs is absolutely nothing mentioned! I am somewhat dissatisfied with this kind of approach!

@schultek

jayjah avatar Oct 08 '25 12:10 jayjah