fromJson method

  1. @override
SDUIWidget fromJson(
  1. Map<String, dynamic>? json
)
override

Load the attributes of the widget descriptor from

Implementation

@override
SDUIWidget fromJson(Map<String, dynamic>? json) {
  caption = json?["caption"];
  type = json?["type"];
  padding = json?["padding"];
  stretched = json?["stretched"];
  icon = json?["icon"];
  iconSize = json?["iconSize"];
  color = json?["color"];
  iconColor = json?["iconColor"];
  fontSize = json?["fontSize"];
  return super.fromJson(json);
}