# fromValue static method

FieldType fromValue(

1. int value

)

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

## Implementation

    static FieldType fromValue(int value) {
        	switch (value) {
          	case 0:
            	return FieldType.unknown;
          	case 1:
            	return FieldType.integer;
          	case 2:
            	return FieldType.boolean;
          	case 3:
            	return FieldType.float;
          	case 4:
            	return FieldType.string;
          	case 5:
            	return FieldType.binary;
          	case 6:
            	return FieldType.date;
          	case 7:
            	return FieldType.timestamp;
          	case 8:
            	return FieldType.time;
          	case 9:
            	return FieldType.object;
          	case 10:
            	return FieldType.integerArray;
          	case 11:
            	return FieldType.booleanArray;
          	case 12:
            	return FieldType.floatArray;
          	case 13:
            	return FieldType.stringArray;
          	case 14:
            	return FieldType.binaryArray;
          	case 15:
            	return FieldType.dateArray;
          	case 16:
            	return FieldType.timestampArray;
          	case 17:
            	return FieldType.objectArray;
        default:
            	throw Exception("Unable to find the specified enum value for $value");
        	}
      	}