toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
  if (bottomLabel != null) 'bottomLabel': bottomLabel!,
  if (bottomLabelText != null) 'bottomLabelText': bottomLabelText!,
  if (button != null) 'button': button!,
  if (contentText != null) 'contentText': contentText!,
  if (endIcon != null) 'endIcon': endIcon!,
  if (icon != null) 'icon': icon!,
  if (onClick != null) 'onClick': onClick!,
  if (startIcon != null) 'startIcon': startIcon!,
  if (startIconVerticalAlignment != null)
    'startIconVerticalAlignment': startIconVerticalAlignment!,
  if (switchControl != null) 'switchControl': switchControl!,
  if (text != null) 'text': text!,
  if (topLabel != null) 'topLabel': topLabel!,
  if (topLabelText != null) 'topLabelText': topLabelText!,
  if (wrapText != null) 'wrapText': wrapText!,
};