generateFileFromJson method
Implementation
bool generateFileFromJson(outputPath, JsonModel jsonModel, name) {
try {
File(outputPath)
..createSync(recursive: true)
..writeAsStringSync(
ModelTemplates.fromJsonModel(jsonModel),
);
} catch (e) {
print(e);
return false;
}
return true;
}