fromJson method

  1. @override
SliderComponentShape? fromJson(
  1. String? json
)
override

Implementation

@override
SliderComponentShape? fromJson(String? json) {
  if (json == null) return null;

  switch (json) {
    case 'noOverlay':
      return SliderComponentShape.noOverlay;

    case 'noThumb':
      return SliderComponentShape.noThumb;
  }

  throw 'Unsuported_Json_Value';
}