toJson method

Map<String, dynamic> toJson()

Implementation

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