toJson method
Implementation
@override
Map<String, dynamic>? toJson(SliderThemeData? object) {
if (object == null) return null;
return <String, dynamic>{
'activeTickMarkColor':
const NullableColorConverter().toJson(object.activeTickMarkColor),
'activeTrackColor':
const NullableColorConverter().toJson(object.activeTrackColor),
'disabledActiveTickMarkColor': const NullableColorConverter().toJson(
object.disabledActiveTickMarkColor,
),
'disabledActiveTrackColor': const NullableColorConverter()
.toJson(object.disabledActiveTrackColor),
'disabledInactiveTickMarkColor': const NullableColorConverter().toJson(
object.disabledInactiveTickMarkColor,
),
'disabledInactiveTrackColor': const NullableColorConverter()
.toJson(object.disabledInactiveTrackColor),
'disabledThumbColor':
const NullableColorConverter().toJson(object.disabledThumbColor),
'inactiveTickMarkColor':
const NullableColorConverter().toJson(object.inactiveTickMarkColor),
'inactiveTrackColor':
const NullableColorConverter().toJson(object.inactiveTrackColor),
'minThumbSeparation': (object.minThumbSeparation),
'overlappingShapeStrokeColor': const NullableColorConverter().toJson(
object.overlappingShapeStrokeColor,
),
'overlayColor':
const NullableColorConverter().toJson(object.overlayColor),
'overlayShape': const NullableSliderComponentShapeConverter()
.toJson(object.overlayShape),
'rangeThumbShape': const NullableRangeSliderThumbShapeConverter()
.toJson(object.rangeThumbShape as RoundRangeSliderThumbShape?),
'rangeTickMarkShape':
const NullableRangeSliderTickMarkShapeConverter().toJson(
object.rangeTickMarkShape,
),
'rangeTrackShape': const NullableRangeSliderTrackShapeConverter()
.toJson(object.rangeTrackShape),
'rangeValueIndicatorShape':
const NullableRangeSliderValueIndicatorShapeConverter().toJson(
object.rangeValueIndicatorShape,
),
'showValueIndicator': const NullableShowValueIndicatorConverter().toJson(
object.showValueIndicator,
),
'thumbColor': const NullableColorConverter().toJson(object.thumbColor),
'thumbShape': const NullableSliderComponentShapeConverter()
.toJson(object.thumbShape),
'tickMarkShape': const NullableSliderTickMarkShapeConverter()
.toJson(object.tickMarkShape),
'trackHeight': object.trackHeight,
'trackShape':
const NullableSliderTrackShapeConverter().toJson(object.trackShape),
'valueIndicatorColor':
const NullableColorConverter().toJson(object.valueIndicatorColor),
'valueIndicatorShape':
const NullableSliderComponentShapeConverter().toJson(
object.valueIndicatorShape,
),
'valueIndicatorTextStyle': const NullableTextStyleConverter().toJson(
object.valueIndicatorTextStyle,
),
};
}