init model if source is set in qml (i.e. source: 'mydatafile.json')