RootWidget.fromJson constructor
Implementation
factory RootWidget.fromJson(Map<String, dynamic> json) {
return RootWidget(
type: json["type"],
id: json["id"],
previewState: json["previewState"],
props: json["props"] == null ? null : WidgetProps.fromJson(json["props"]),
widgets: json["widgets"] == null
? []
: List<WidgetWidget>.from(
json["widgets"]!.map((x) => WidgetWidget.fromJson(x))),
);
}