toJson method

  1. @override
String? toJson(
  1. RangeSliderValueIndicatorShape? object
)
override

Implementation

@override
String? toJson(RangeSliderValueIndicatorShape? object) {
  if (object == null) return null;

  if (object is PaddleRangeSliderValueIndicatorShape) {
    return 'paddle';
  } else if (object is RectangularRangeSliderValueIndicatorShape) {
    return 'rectangular';
  }

  throw 'Json_Unsuported_Value';
}