toJson method
Implementation
Map<String, dynamic> toJson() {
return <String, dynamic>{
if (fontFamily != null) 'fontFamily': fontFamily,
if (fontFamilyFallback != null)
'fontFamilyFallback': fontFamilyFallback?.join(','),
if (fontSize != null) 'fontSize': fontSize,
if (height != null) 'height': height,
if (leadingDistribution != null)
'leadingDistribution': leadingDistribution.toString(),
if (leading != null) 'leading': leading,
if (fontWeight != null) 'fontWeight': fontWeight,
if (fontStyle != null) 'fontStyle': fontStyle,
if (forceStrutHeight != null) 'forceStrutHeight': forceStrutHeight,
};
}