toJson method
Implementation
@override
String? toJson(ShowValueIndicator? object) {
if (object == null) return null;
switch (object) {
case ShowValueIndicator.always:
return 'always';
case ShowValueIndicator.never:
return 'never';
case ShowValueIndicator.onlyForContinuous:
return 'onlyForContinuous';
case ShowValueIndicator.onlyForDiscrete:
return 'onlyForDiscrete';
}
}