# fromValue static method

PadStatus fromValue(

1. int value

)

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

## Implementation

    static PadStatus fromValue(int value) {
        	switch (value) {
          	case 0:
            	return PadStatus.unknown;
          	case 1:
            	return PadStatus.bonafide;
          	case 2:
            	return PadStatus.attack;
        default:
            	throw Exception("Unable to find the specified enum value for $value");
        	}
      	}