createStructfromJSON method
Implementation
HTStruct createStructfromJSON(Map<dynamic, dynamic> jsonData) {
final HTStruct prototype = structRoot ??
globalNamespace.memberGet(_lexicon.idGlobalPrototype,
isRecursive: true);
final struct =
HTStruct(this, prototype: prototype, closure: currentNamespace);
for (final key in jsonData.keys) {
var value = toStructValue(jsonData[key]);
struct.define(key.toString(), value);
}
return struct;
}