toAdminStatus method

AdminStatus toAdminStatus()

Implementation

AdminStatus toAdminStatus() {
  switch (this) {
    case 'ENABLED':
      return AdminStatus.enabled;
    case 'DISABLE_IN_PROGRESS':
      return AdminStatus.disableInProgress;
  }
  throw Exception('$this is not known in enum AdminStatus');
}