toJson method

  1. @override
Map<String, dynamic>? toJson(
  1. ScrollbarThemeData? object
)
override

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,
    ),
  };
}