toJson method
Implementation
@override
Map<String, dynamic>? toJson(StrutStyle? object) {
if (object == null) return null;
return {
'fontFamily': object.fontFamily,
'fontFamilyFallback': object.fontFamilyFallback,
'fontSize': object.fontSize,
'fontStyle': const NullableFontStyleConverter().toJson(object.fontStyle),
'fontWeight':
const NullableFontWeightConverter().toJson(object.fontWeight),
'forceStrutHeight': object.forceStrutHeight,
'height': object.height,
'leading': object.leading,
};
}