toJson method
Implementation
@override
Map<String, dynamic> toJson() {
final json = _$FragmentToJson(this);
if (styles != null && styles!.isNotEmpty) {
json['styles'] = styles;
}
json['fontFamily'] = fontFamily;
if (fontSize != 14.0) {
json['fontSize'] = fontSize;
}
if (color != null) {
json['color'] = color;
}
if (highlightColor != null) {
json['highlightColor'] = highlightColor;
}
return json;
}