toJson method
Implementation
core.Map<core.String, core.dynamic> toJson() => {
if (backgroundColor != null) 'backgroundColor': backgroundColor!,
if (color != null) 'color': color!,
if (fontFamily != null) 'fontFamily': fontFamily!,
if (fontSize != null) 'fontSize': fontSize!,
if (fontWeight != null) 'fontWeight': fontWeight!,
if (textAnchor != null) 'textAnchor': textAnchor!,
if (textDecoration != null) 'textDecoration': textDecoration!,
if (textStyle != null) 'textStyle': textStyle!,
};