toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (icon != null) 'icon': icon!,
      if (iconUrl != null) 'iconUrl': iconUrl!,
      if (name != null) 'name': name!,
      if (onClick != null) 'onClick': onClick!,
    };