fromJson method
Load the attributes of the widget descriptor from
Implementation
@override
SDUIWidget fromJson(Map<String, dynamic>? json) {
name = json?["name"] ?? 'value';
color = toColor(json?["color"]) ?? Colors.black;
hideText = json?["hideText"] ?? false;
maxLength = json?["maxLength"] ?? 6;
pinSize = json?['pinSize'] ?? 10.0;
keyboardButtonSize = json?['keyboardButtonSize'] ?? 70.0;
return super.fromJson(json);
}