toJson method
Implementation
Map<String, dynamic> toJson() {
Map<String, dynamic> rst = {};
rst.updateNotNull("alignment", alignment?.toJson());
rst.updateNotNull("width", width?.toJson());
rst.updateNotNull("height", height?.toJson());
rst.updateNotNull("margin", margin?.toJson());
rst.updateNotNull("padding", padding?.toJson());
rst.updateNotNull("visible", visible);
rst.updateNotNull("opacity", opacity);
rst.updateNotNull("backgroundDecoration", backgroundDecoration?.toJson());
rst.updateNotNull("foregroundDecoration", foregroundDecoration?.toJson());
rst.updateNotNull("shapeBorder", shapeBorder?.toJson());
rst.updateNotNull("shadows", shadows?.map((e) => e.toJson()).toList());
rst.updateNotNull(
"insetShadows", insetShadows?.map((e) => e.toJson()).toList());
rst.updateNotNull("transform", transform?.toJson());
rst.updateNotNull("transformAlignment", transformAlignment?.toJson());
rst.updateNotNull("childAlignment", childAlignment?.toJson());
rst.updateNotNull("textAlign", textAlign?.toJson());
rst.updateNotNull("textStyle", textStyle?.toJson());
rst.updateNotNull('shaderGradient', shaderGradient?.toJson());
rst.updateNotNull('imageFilter', imageFilter?.toJson());
rst.updateNotNull('backdropFilter', backdropFilter?.toJson());
rst.updateNotNull("mouseCursor", mouseCursor?.toJson());
return rst;
}