NodeSpec.fromMap constructor
NodeSpec.fromMap(
- Map spec
Implementation
factory NodeSpec.fromMap(Map spec) {
final specClone = spec.clone();
return NodeSpec(
specClone.remove("_type"),
specClone.remove("properties") ?? {},
actions: specClone.remove("actions") ?? {},
);
}