genAll function
Implementation
void genAll(String path) {
final libPath = '${path}/lib';
genDir(libPath);
final repository = genFile('${libPath}/repository.dart');
genEDNetCoreRepository(repository);
final domainModelLibrary =
genFile('${libPath}/${domainName}_${modelName}.dart');
genDomainModelLibrary(domainModelLibrary);
final domainModelAppLibrary =
genFile('${libPath}/${domainName}_${modelName}_app.dart');
genDomainModelAppLibrary(domainModelAppLibrary);
final domainPath = '${libPath}/${domainName}';
genDir(domainPath);
final domain = genFile('${domainPath}/domain.dart');
genEDNetCoreDomain(domain);
final modelPath = '${domainPath}/${modelName}';
genDir(modelPath);
final model = genFile('${modelPath}/model.dart');
genEDNetCoreModel(model);
for (final concept in ednetCoreModel.concepts) {
final conceptEntities =
genFile('${modelPath}/${concept.codesLowerUnderscore}.dart');
genConceptEntities(conceptEntities, concept);
}
final jsonPath = '${modelPath}/json';
genDir(jsonPath);
final jsonData = genFile('${jsonPath}/data.dart');
genJsonData(jsonData);
final jsonModel = genFile('${jsonPath}/model.dart');
genJsonModel(jsonModel);
genGen(path);
}