toJson method
Implementation
@override
String? toJson(SliderComponentShape? object) {
if (object == null) return null;
// This one's a bit strange because both noOverlay and noThumb actually
// point to the exact same no-op class, so there's no way to tell them
// apart. Might as well just pick the one that comes first
// alphabetically.
if (object.runtimeType == SliderComponentShape.noOverlay.runtimeType) {
return 'noOverlay';
}
throw 'Json_Unsuported_Value';
}