Simply paste a formly fields object or array of objects in the first textarea and the
other textarea will update with the correct version (basically moving all non-standard
properties to the templateOptions object). Hopefully this covers most use cases for you
and eases the migration!
What it does:
Accepts a field object or an array of field objects
Moves all non-allowed properties to the templateOptions object of the field
Properly updates the expressionProperties to use expressions for the names for anything that is a "data" expressionProperty or a property that does not belong to the field object (adds the templateOptions to the key expression)
Allows you to specify if you wish to use double quotes
Allows you to specify if you want single quotes
Keeps functions in tact (this who thing would be much easier without that feature, I assure you)
Shows an error in the output if there was a problem
What it doesn't:
Format things all pretty (hopefully your editor will take care of that)
Handle cases when you're referencing things that are not defined in context (it's using eval)