export method
export the runtime widget to json
Implementation
@override
Map<String, dynamic> export(Widget? widget, BuildContext? buildContext) {
var realWidget = widget as Align;
Map<String, dynamic> json = {
"type": widgetName,
"alignment": exportAlignment(realWidget.alignment as Alignment?),
"widthFactor": realWidget.widthFactor,
"heightFactor": realWidget.heightFactor,
"child": DynamicWidgetBuilder.export(realWidget.child, buildContext)
};
return json;
}