# fromValue static method

LicenseHardwareCodeType fromValue(

1. int value

)

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

## Implementation

    static LicenseHardwareCodeType fromValue(int value) {
        	switch (value) {
          	case 1:
            	return LicenseHardwareCodeType.windowsOs;
          	case 3:
            	return LicenseHardwareCodeType.linuxOs;
          	case 5:
            	return LicenseHardwareCodeType.android;
          	case 6:
            	return LicenseHardwareCodeType.androidPackageName;
          	case 7:
            	return LicenseHardwareCodeType.ios;
          	case 8:
            	return LicenseHardwareCodeType.macOs;
          	case 9:
            	return LicenseHardwareCodeType.jetsonNano;
          	case 10:
            	return LicenseHardwareCodeType.iosBundleId;
          	case 11:
            	return LicenseHardwareCodeType.windowsUsb;
          	case 12:
            	return LicenseHardwareCodeType.smartCard;
        default:
            	throw Exception("Unable to find the specified enum value for $value");
        	}
      	}