toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
      "margin": margin?.toJson(),
      "padding": padding?.toJson(),
      "width": width,
      "height": height,
      "constWidth": constWidth,
      "constHeight": constHeight,
      "hasBg": hasBg,
      "bgColor": bgColor,
      "bgOpacity": bgOpacity,
      "horiAlignment": horiAlignment,
      "verAlignment": verAlignment,
      "hasBorder": hasBorder,
      "borderWidth": borderWidth,
      "borderColor": borderColor,
      "borderOpacity": borderOpacity,
      "roundness": roundness,
      "border": border?.toJson(),
      "hasAction": hasAction,
      "clickType": clickType,
      "target": target,
      "hasTransition": hasTransition,
      "transition": transition,
      "orientation": orientation,
      "asset": asset,
      "bgObjectFit": bgObjectFit,
      "bgHeight": bgHeight,
      "bgWidth": bgWidth,
      "bgLeft": bgLeft,
      "bgTop": bgTop,
      "horiContentAlignment": horiContentAlignment,
      "verContentAlignment": verContentAlignment,
      "children": children.map((x) => x).toList(),
      "text": text,
      "fontColor": fontColor,
      "fontSize": fontSize,
      "fontWeight": fontWeight,
      "lineHeight": lineHeight,
      "alignment": alignment,
      "autoLink": autoLink,
      "style": style,
    };