toJson method
Implementation
Map<String, dynamic> toJson() {
final map = <String, dynamic>{};
map['color'] = _color;
map['fontFamily'] = _fontFamily;
map['fontSize'] = _fontSize;
map['fontWeight'] = _fontWeight;
map['opacity'] = _opacity;
return map;
}