fromJson method
Load the attributes of the widget descriptor from
Implementation
@override
SDUIWidget fromJson(Map<String, dynamic>? json) {
alignment = json?["alignment"];
padding = json?["padding"];
margin = json?["margin"];
border = json?["border"];
borderRadius = json?["borderRadius"];
borderColor = json?["borderColor"];
background = json?["background"];
backgroundImageUrl = json?["backgroundImageUrl"];
width = json?["width"];
height = json?["height"];
return super.fromJson(json);
}