toMap method

Map<String, dynamic> toMap()

Implementation

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