Right now can create a form model using freezed, this creates the to/from json methods and after validating the form we can get the form from the value using from json.
I would like to be able to add a type to the form like
Form
MyForm must implement fromJson
This way when returning the value, it can already be of the correct type.
Even better still, id like to utilise the build runner to generate keys from the form model.
That way when supplying the name for a TextField you could use MyForm.key.firstName
Right now can create a form model using freezed, this creates the to/from json methods and after validating the form we can get the form from the value using from json.
I would like to be able to add a type to the form like
Form
MyForm must implement fromJson
This way when returning the value, it can already be of the correct type.
Even better still, id like to utilise the build runner to generate keys from the form model.
That way when supplying the name for a TextField you could use MyForm.key.firstName