ActionNodeSpec.fromMap constructor

ActionNodeSpec.fromMap(
  1. Map spec
)

Implementation

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