EUserUgcList.fromValue constructor

EUserUgcList.fromValue(
  1. int value
)

Implementation

factory EUserUgcList.fromValue(int value) {
  switch (value) {
    case 0:
      return EUserUgcList.published;
    case 1:
      return EUserUgcList.votedOn;
    case 2:
      return EUserUgcList.votedUp;
    case 3:
      return EUserUgcList.votedDown;
    case 4:
      return EUserUgcList.willVoteLater;
    case 5:
      return EUserUgcList.favorited;
    case 6:
      return EUserUgcList.subscribed;
    case 7:
      return EUserUgcList.usedOrPlayed;
    case 8:
      return EUserUgcList.followed;
    default:
      throw UnknownEnumValueException(
        "Unknown value for 'EUserUgcList'. The value was: '$value'",
      );
  }
}