toJson method
Implementation
Map<String, dynamic> toJson() {
var json = <String, dynamic>{'name': name};
if (iconUrl != null) {
json['iconUrl'] = iconUrl;
}
if (materialIcon != null) {
json['materialIcon'] = materialIcon;
}
if (iframeUrl != null) {
json['iframeUrl'] = iframeUrl;
}
if (dashboardId != null) {
json['dashboardId'] = dashboardId;
}
if (hideDashboardToolbar != null) {
json['hideDashboardToolbar'] = hideDashboardToolbar;
}
if (setAccessToken != null) {
json['setAccessToken'] = setAccessToken;
}
if (childMenuItems != null) {
json['childMenuItems'] = childMenuItems!.map((e) => e.toJson()).toList();
}
return json;
}