fromJson method
Load the attributes of the widget descriptor from
Implementation
@override
SDUIWidget fromJson(Map<String, dynamic>? json) {
color = json?["color"];
backgroundColor = json?["backgroundColor"];
caption = json?["caption"];
padding = json?["padding"];
elevation = json?["elevation"];
shadowColor = json?["shadowColor"];
fontSize = json?["fontSize"];
return super.fromJson(json);
}