ECommunityProfileItemProperty.fromValue constructor

ECommunityProfileItemProperty.fromValue(
  1. int value
)

Implementation

factory ECommunityProfileItemProperty.fromValue(int value) {
  switch (value) {
    case 0:
      return ECommunityProfileItemProperty.imageSmall;
    case 1:
      return ECommunityProfileItemProperty.imageLarge;
    case 2:
      return ECommunityProfileItemProperty.internalName;
    case 3:
      return ECommunityProfileItemProperty.title;
    case 4:
      return ECommunityProfileItemProperty.description;
    case 5:
      return ECommunityProfileItemProperty.appId;
    case 6:
      return ECommunityProfileItemProperty.typeId;
    case 7:
      return ECommunityProfileItemProperty.class_;
    case 8:
      return ECommunityProfileItemProperty.movieWebM;
    case 9:
      return ECommunityProfileItemProperty.movieMP4;
    case 10:
      return ECommunityProfileItemProperty.movieWebMSmall;
    case 11:
      return ECommunityProfileItemProperty.movieMP4Small;
    default:
      throw UnknownEnumValueException(
        "Unknown value for 'ECommunityProfileItemProperty'. The value was: '$value'",
      );
  }
}