NodeSpec.fromMap constructor

NodeSpec.fromMap(
  1. Map spec
)

Implementation

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