takeFromMap method
Used for meta-forms in setting deep properties
Implementation
@override
void takeFromMap(Map<String, dynamic>? from, {bool copyEntries = true}) {
if (from == null) return;
super.takeFromMap(from, copyEntries: copyEntries);
for (final entry in from.entries) {
final key = entry.key;
final value = entry.value;
if (value == null) continue;
switch(key) {
case "path": _path = JsonPath.fromJson(value); break;
case "label": _label = value as String; break;
case "factRef": _factRef = MSchemaRef.fromJson(value); break;
case "linkRef": _linkRef = MSchemaRef.fromJson(value); break;
case "isLinkSingleton": _isLinkSingleton = value as bool; break;
case "isEmbed": _isEmbed = value as bool; break;
case "maxLinks": _maxLinks = value as int; break;
case "minLinks": _minLinks = value as int; break;
default: break;
}
}
}