toJson method
Implementation
Map<String, dynamic> toJson() {
return {
"axis": axis.index,
"fontWeight": fontWeight.index,
"fontStyle": fontStyle.index,
"textAlign": textAlign.index,
"fontFamily": fontFamily,
"fontSize": fontSize,
"lineHeight": lineHeight,
"padding": {
"left": padding.left,
"top": padding.top,
"right": padding.right,
"bottom": padding.bottom,
},
"backgroundColor": backgroundColor.toARGB32(),
"foregroundColor": foregroundColor.toARGB32(),
};
}