Component.fromJson constructor

Component.fromJson(
  1. Map<String, dynamic> json
)

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),
      ),
    ),
  );
}