Component.fromJson constructor
Implementation
factory Component.fromJson(Map<String, dynamic> json) {
return Component(
type: json["type"],
id: json["id"],
widgets: List<UIComponent>.from(
json["widgets"].map(
(x) => UIComponent.fromJson(x),
),
),
);
}