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) {
  top = json?["top"];
  bottom = json?["bottom"];
  right = json?["right"];
  left = json?["left"];
  width = json?["width"];
  height = json?["height"];

  return super.fromJson(json);
}