javiercbk / json_to_dart

Library that generates dart classes from json strings

Home Page:https://javiercbk.github.io/json_to_dart/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

option to generate final

maks opened this issue · comments

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.

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.