toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
  if (altText != null) 'altText': altText!,
  if (color != null) 'color': color!,
  if (disabled != null) 'disabled': disabled!,
  if (icon != null) 'icon': icon!,
  if (onClick != null) 'onClick': onClick!,
  if (text != null) 'text': text!,
  if (type != null) 'type': type!,
};