# fromValue static method

VisibilityCondition fromValue(

1. int value

)

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

## Implementation

    static VisibilityCondition fromValue(int value) {
        	switch (value) {
          	case 0:
            	return VisibilityCondition.always;
          	case 1:
            	return VisibilityCondition.signatureValidated;
          	case 2:
            	return VisibilityCondition.notExpired;
          	case 3:
            	return VisibilityCondition.userAuthenticated;
          	case 4:
            	return VisibilityCondition.never;
        default:
            	throw Exception("Unable to find the specified enum value for $value");
        	}
      	}