EUgcContentDescriptorId.fromValue constructor

EUgcContentDescriptorId.fromValue(
  1. int value
)

Implementation

factory EUgcContentDescriptorId.fromValue(int value) {
  switch (value) {
    case 1:
      return EUgcContentDescriptorId.nudityOrSexualContent;
    case 2:
      return EUgcContentDescriptorId.frequentViolenceOrGore;
    case 3:
      return EUgcContentDescriptorId.adultOnlySexualContent;
    case 4:
      return EUgcContentDescriptorId.gratuitousSexualContent;
    case 5:
      return EUgcContentDescriptorId.anyMatureContent;
    default:
      throw UnknownEnumValueException(
        "Unknown value for 'EUgcContentDescriptorId'. The value was: '$value'",
      );
  }
}