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 "threadId": _threadId = RecordKey.fromJson(value); break;
case "frameId": _frameId = RecordKey.fromJson(value); break;
case "nodeId": _nodeId = value as String; break;
case "graphId": _graphId = value as String; break;
case "taskTitle": _taskTitle = value as String; break;
case "status": _status = value as String; break;
case "taskDescription": _taskDescription = value as String; break;
case "contactId": _contactId = RecordKey.fromJson(value); break;
default: break;
}
}
}