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