toJsonMap method
是否可点击,默认:不可点击
Implementation
Map toJsonMap() {
return {
"widgetId": widgetId,
"type": getStringFromEnum(type),
"title": title,
"titleFont": titleFont,
"textAlignment": getStringFromEnum(textAlignment),
"titleColor": titleColor,
"backgroundColor": backgroundColor,
"isShowUnderline": isShowUnderline,
"isClickEnable": isClickEnable,
"btnNormalImageName": btnNormalImageName,
"btnPressedImageName": btnPressedImageName,
"lines": lines,
"isSingleLine": isSingleLine,
"left": left,
"top": top,
"width": width,
"height": height,
}..removeWhere((key, value) => value == null);
}