RootNodeSpec.fromMap constructor

RootNodeSpec.fromMap(
  1. Map spec
)

Implementation

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