toJson method
Implementation
core.Map<core.String, core.dynamic> toJson() => {
if (backgroundColor != null) 'backgroundColor': backgroundColor!,
if (bold != null) 'bold': bold!,
if (fontSize != null) 'fontSize': fontSize!,
if (fontType != null) 'fontType': fontType!,
if (fontWeight != null) 'fontWeight': fontWeight!,
if (handwritten != null) 'handwritten': handwritten!,
if (italic != null) 'italic': italic!,
if (letterSpacing != null) 'letterSpacing': letterSpacing!,
if (pixelFontSize != null) 'pixelFontSize': pixelFontSize!,
if (smallcaps != null) 'smallcaps': smallcaps!,
if (strikeout != null) 'strikeout': strikeout!,
if (subscript != null) 'subscript': subscript!,
if (superscript != null) 'superscript': superscript!,
if (textColor != null) 'textColor': textColor!,
if (underlined != null) 'underlined': underlined!,
};