Root.fromJson constructor
Implementation
factory Root.fromJson(Map<String, dynamic> json) {
return Root(
id: json["id"],
type: json["type"],
appComponentIds: json["app_component_ids"],
props: json["props"] == null ? null : RootProps.fromJson(json["props"]),
widgets: List<UIComponent>.from(
json["widgets"].map(
(x) => UIComponent.fromJson(x),
),
),
name: json["name"],
uiTrigger: json["ui_trigger"],
);
}