toJson method
Implementation
core.Map<core.String, core.dynamic> toJson() => {
if (bold != null) 'bold': bold!,
if (fontFamily != null) 'fontFamily': fontFamily!,
if (fontSize != null) 'fontSize': fontSize!,
if (foregroundColor != null) 'foregroundColor': foregroundColor!,
if (foregroundColorStyle != null)
'foregroundColorStyle': foregroundColorStyle!,
if (italic != null) 'italic': italic!,
if (link != null) 'link': link!,
if (strikethrough != null) 'strikethrough': strikethrough!,
if (underline != null) 'underline': underline!,
};