toGameServerProtectionPolicy method

GameServerProtectionPolicy toGameServerProtectionPolicy()

Implementation

GameServerProtectionPolicy toGameServerProtectionPolicy() {
  switch (this) {
    case 'NO_PROTECTION':
      return GameServerProtectionPolicy.noProtection;
    case 'FULL_PROTECTION':
      return GameServerProtectionPolicy.fullProtection;
  }
  throw Exception('$this is not known in enum GameServerProtectionPolicy');
}