toState method

State toState()

Implementation

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