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