toJson method

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

Implementation

@override
Map<String, dynamic>? toJson(RangeSliderThumbShape? object) {
  if (object == null) return null;

  if (object is RoundRangeSliderThumbShape) {
    return <String, dynamic>{
      'disabledThumbRadius': object.disabledThumbRadius,
      'elevation': object.elevation,
      'enabledThumbRadius': object.enabledThumbRadius,
      'pressedElevation': object.pressedElevation,
      'type': 'round',
    };
  }

  throw 'Json_Unsuported_Value';
}