# fromValue static method

FieldExtensionType fromValue(

1. int value

)

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

## Implementation

    static FieldExtensionType fromValue(int value) {
        	switch (value) {
          	case 0:
            	return FieldExtensionType.none;
          	case 1:
            	return FieldExtensionType.unknown;
          	case 2:
            	return FieldExtensionType.image;
          	case 3:
            	return FieldExtensionType.portrait;
          	case 4:
            	return FieldExtensionType.biometric;
          	case 5:
            	return FieldExtensionType.compression;
          	case 6:
            	return FieldExtensionType.encryption;
        default:
            	throw Exception("Unable to find the specified enum value for $value");
        	}
      	}