fromMap static method
Implementation
static JsonModel fromMap(String fileName, Map<String, dynamic> jsonMap, {String? relativePath}) {
var dartDeclarations = <DartDeclaration>[];
jsonMap.forEach((key, value) {
var declaration = DartDeclaration.fromKeyValue(key, value);
return dartDeclarations.add(declaration);
});
// add key to templatestring
// add valuetype to templatestring
return JsonModel(fileName, dartDeclarations, relativePath);
}