# fromValue static method

FaceSegmentationLabel fromValue(

1. int value

)

Creates an enumeration value from int. param value The int value. return The created FaceSegmentationLabel.

## Implementation

    static FaceSegmentationLabel fromValue(int value) {
        	switch (value) {
          	case 0:
            	return FaceSegmentationLabel.background;
          	case 1:
            	return FaceSegmentationLabel.cloth;
          	case 2:
            	return FaceSegmentationLabel.neck;
          	case 3:
            	return FaceSegmentationLabel.skin;
          	case 4:
            	return FaceSegmentationLabel.mouth;
          	case 5:
            	return FaceSegmentationLabel.lips;
          	case 6:
            	return FaceSegmentationLabel.nose;
          	case 7:
            	return FaceSegmentationLabel.ears;
          	case 8:
            	return FaceSegmentationLabel.earring;
          	case 9:
            	return FaceSegmentationLabel.necklace;
          	case 10:
            	return FaceSegmentationLabel.eyebrows;
          	case 11:
            	return FaceSegmentationLabel.hair;
          	case 12:
            	return FaceSegmentationLabel.glasses;
          	case 13:
            	return FaceSegmentationLabel.eyes;
          	case 14:
            	return FaceSegmentationLabel.hat;
        default:
            	throw Exception("Unable to find the specified enum value for $value");
        	}
      	}