# fromValue static method

FaceExpression fromValue(

1. int value

)

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

## Implementation

    static FaceExpression fromValue(int value) {
        	switch (value) {
          	case 0:
            	return FaceExpression.unknown;
          	case 1:
            	return FaceExpression.angriness;
          	case 2:
            	return FaceExpression.disgust;
          	case 3:
            	return FaceExpression.fear;
          	case 4:
            	return FaceExpression.happiness;
          	case 5:
            	return FaceExpression.neutrality;
          	case 6:
            	return FaceExpression.sadness;
          	case 7:
            	return FaceExpression.surprise;
        default:
            	throw Exception("Unable to find the specified enum value for $value");
        	}
      	}