toAccessStatus method

AccessStatus toAccessStatus()

Implementation

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