toState method
Implementation
State toState() {
switch (this) {
case 'ENABLED':
return State.enabled;
case 'DISABLED':
return State.disabled;
}
throw Exception('$this is not known in enum State');
}
State toState() {
switch (this) {
case 'ENABLED':
return State.enabled;
case 'DISABLED':
return State.disabled;
}
throw Exception('$this is not known in enum State');
}