# fromValue static method

LicenseType fromValue(

1. int value

)

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

## Implementation

    static LicenseType fromValue(int value) {
        	switch (value) {
          	case 1:
            	return LicenseType.classic;
          	case 2:
            	return LicenseType.trial;
          	case 3:
            	return LicenseType.online;
        default:
            	throw Exception("Unable to find the specified enum value for $value");
        	}
      	}