fromJson method
Implementation
@override
SmartDashesType? fromJson(String? json) {
if (json == null) return null;
switch (json) {
case 'disabled':
return SmartDashesType.disabled;
case 'enabled':
return SmartDashesType.enabled;
}
throw 'Unsuported_Json_Value';
}