toPermission method

Permission toPermission()

Implementation

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