model: fix model config in models.json

Fix model generator to set `dataSource` and `public` properties on
`ComponentModel` (models.json) instead of `ModelDefinition`
(models/{name}.json).