toJson method
Implementation
Map<String, dynamic> toJson() {
return {
'color': color,
'fontFamily': fontFamily,
'fontWeight': fontWeight,
'fontSize': fontSize,
'fontSmoothing': fontSmoothing,
'lineHeight': lineHeight,
'textTransform': textTransform,
'letterSpacing': letterSpacing,
'background': background,
'padding': padding,
'borderRadius': borderRadius,
'boxShadow': boxShadow,
'borderStyle': borderStyle,
'borderColor': borderColor,
'borderWidth': borderWidth,
};
}