fromValue static method

FaceAttackSupport fromValue(
  1. int value
)

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

Implementation

static FaceAttackSupport fromValue(int value) {
    	switch (value) {
      	case 0:
        	return FaceAttackSupport.none;
      	case 1:
        	return FaceAttackSupport.idCard;
      	case 2:
        	return FaceAttackSupport.screen;
      	case 3:
        	return FaceAttackSupport.print;
    default:
        	throw Exception("Unable to find the specified enum value for $value");
    	}
  	}