toJson method

Map<String, dynamic> toJson()

Implementation

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