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