fromJson method
Load the attributes of the widget descriptor from
Implementation
@override
SDUIWidget fromJson(Map<String, dynamic>? json) {
caption = json?["caption"];
subCaption = json?["subCaption"];
icon = json?["icon"];
name = json?["name"] ?? '_no_name_';
selected = json?["selected"] ?? false;
return super.fromJson(json);
}