toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {
    'type': type,
    'id': id,
    'show': show,
    'zlevel': zlevel,
    'z': z,
    'left': left,
    'top': top,
    'right': right,
    'bottom': bottom,
    'orient': orient,
    'align': align,
    'padding': padding,
    'itemGap': itemGap,
    'itemWidth': itemWidth,
    'itemHeight': itemHeight,
    'formatter': formatter,
    'selectedMode': selectedMode,
    'selected': selected,
    'icon': icon,
    'textStyle': textStyle?.toJson(),
    'backgroundColor': backgroundColor,
    'borderColor': borderColor,
    'borderWidth': borderWidth,
    'borderRadius': borderRadius,
    'shadowBlur': shadowBlur,
    'shadowColor': shadowColor,
    'shadowOffsetX': shadowOffsetX,
    'shadowOffsetY': shadowOffsetY,
    'scrollDataIndex': scrollDataIndex,
    'pageButtonPosition': pageButtonPosition,
    'pageIconsColor': pageIconsColor,
    'pageIconsInactiveColor': pageIconsInactiveColor,
  };
}