# fromValue static method

PortraitStatus fromValue(

1. int value

)

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

## Implementation

    static PortraitStatus fromValue(int value) {
        	switch (value) {
          	case 0:
            	return PortraitStatus.undefined;
          	case 1:
            	return PortraitStatus.noFaceDetected;
          	case 2:
            	return PortraitStatus.created;
          	case 3:
            	return PortraitStatus.updated;
        default:
            	throw Exception("Unable to find the specified enum value for $value");
        	}
      	}