WidgetNodeSpec.fromMap constructor
WidgetNodeSpec.fromMap(
- Map spec
Implementation
factory WidgetNodeSpec.fromMap(Map spec) {
final specClone = spec.clone();
return WidgetNodeSpec(
specClone.remove("_id") ?? "",
specClone.remove("name"),
specClone.remove("_type"),
specClone.remove("_template"),
specClone.remove("properties") ?? {},
specClone.remove("actions") ?? {},
specClone.remove("widgets") ?? {},
specClone,
);
}