fromJson method
Load the attributes of the widget descriptor from
Implementation
@override
SDUIWidget fromJson(Map<String, dynamic>? json) {
icon = json?["icon"];
tooltip = json?["tooltip"];
size = json?["size"];
color = json?["color"];
return super.fromJson(json);
}