toOptionState method
Implementation
OptionState toOptionState() {
switch (this) {
case 'RequiresIndexDocuments':
return OptionState.requiresIndexDocuments;
case 'Processing':
return OptionState.processing;
case 'Active':
return OptionState.active;
}
throw Exception('$this is not known in enum OptionState');
}