toMap method
Implementation
Map<String, dynamic> toMap() {
return {
'textColor': colorToHex(textColor),
'borderColor': colorToHex(borderColor),
'backgroundColor': colorToHex(backgroundColor),
'cornerRadius': cornerRadius,
'displayStyle': displayStyle,
};
}