# fromValue static method

MrzType fromValue(

1. int value

)

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

## Implementation

    static MrzType fromValue(int value) {
        	switch (value) {
          	case 0:
            	return MrzType.none;
          	case 1:
            	return MrzType.td1;
          	case 2:
            	return MrzType.td2;
          	case 3:
            	return MrzType.td3;
          	case 4:
            	return MrzType.drivingLicense;
          	case 5:
            	return MrzType.mrvA;
          	case 6:
            	return MrzType.mrvB;
          	case 100:
            	return MrzType.other;
          	case 101:
            	return MrzType.frenchId;
        default:
            	throw Exception("Unable to find the specified enum value for $value");
        	}
      	}