# fromValue static method

DocumentModel fromValue(

1. int value

)

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

## Implementation

    static DocumentModel fromValue(int value) {
        	switch (value) {
          	case 1001:
            	return DocumentModel.documentDetector2A;
          	case 1002:
            	return DocumentModel.documentDetector2B;
          	case 1102:
            	return DocumentModel.mrzReader2A;
          	case 1202:
            	return DocumentModel.ocrLatin2A;
        default:
            	throw Exception("Unable to find the specified enum value for $value");
        	}
      	}