toJson method
Implementation
@override
Map<String, dynamic>? toJson(ScrollbarThemeData? object) {
if (object == null) return null;
return {
'crossAxisMargin': object.crossAxisMargin,
'isAlwaysShown': object.isAlwaysShown,
'mainAxisMargin': object.mainAxisMargin,
'minThumbLength': object.minThumbLength,
'radius': const NullableRadiusConverter().toJson(object.radius),
'showTrackOnHover': object.showTrackOnHover,
'thickness': const NullableMaterialStatePropertyDoubleConverter().toJson(
object.thickness,
),
};
}