javiercbk / json_to_dart

Library that generates dart classes from json strings
https://javiercbk.github.io/json_to_dart/
The Unlicense
1.33k stars 371 forks source link

option to generate final #43

Open maks opened 4 years ago

maks commented 4 years ago

It would be nice to have an option simliar to Use private fields to generate fields as final, along with marking the class as constwould be great to allow immutable by default data model classes.

javiercbk commented 4 years ago

After making extensive use of flutter_redux lately, I understand the value of such implementation.

It is not hard to implement this, but it is not trivial either in the current project state. At the moment, this project is screaming for a refactor.