export method
export the runtime widget to json
Implementation
@override
Map<String, dynamic> export(Widget? widget, BuildContext? buildContext) {
var realWidget = widget as Padding;
var padding = realWidget.padding as EdgeInsets;
return <String, dynamic>{
"type": widgetName,
"padding": padding != null
? "${padding.left},${padding.top},${padding.right},${padding.bottom}"
: null,
"child": DynamicWidgetBuilder.export(realWidget.child, buildContext)
};
}