toJson method
Implementation
Map<String, dynamic> toJson() => {
'backgroundColor': backgroundColor,
'disabledColor': disabledColor,
'textStyle': textStyle.toJson(),
'border': border?.toJson(),
'hoverColor': hoverColor,
};