EAccountType.fromValue constructor

EAccountType.fromValue(
  1. int value
)

Implementation

factory EAccountType.fromValue(int value) {
  switch (value) {
    case 0:
      return EAccountType.invalid;
    case 1:
      return EAccountType.individual;
    case 2:
      return EAccountType.multiseat;
    case 3:
      return EAccountType.gameServer;
    case 4:
      return EAccountType.anonGameServer;
    case 5:
      return EAccountType.pending;
    case 6:
      return EAccountType.contentServer;
    case 7:
      return EAccountType.clan;
    case 8:
      return EAccountType.chat;
    case 9:
      return EAccountType.consoleUser;
    case 10:
      return EAccountType.anonUser;
    case 11:
      return EAccountType.max;
    default:
      throw UnknownEnumValueException(
        "Unknown value for 'EAccountType'. The value was: '$value'",
      );
  }
}