constructor(versionNumber, symbolSizeRows, symbolSizeColumns, dataRegionSizeRows, dataRegionSizeColumns, ecBlocks) {
			this.versionNumber = versionNumber;
			this.symbolSizeRows = symbolSizeRows;
			this.symbolSizeColumns = symbolSizeColumns;
			this.dataRegionSizeRows = dataRegionSizeRows;
			this.dataRegionSizeColumns = dataRegionSizeColumns;
			this.ecBlocks = ecBlocks;
			// Calculate the total number of codewords
			let total = 0;
			const ecCodewords = ecBlocks.getECCodewords();
			const ecbArray = ecBlocks.getECBlocks();
			for (let ecBlock of ecbArray) {
				total += ecBlock.getCount() * (ecBlock.getDataCodewords() + ecCodewords);
			}
			this.totalCodewords = total;
		}
The Version object encapsulates attributes about a particular
size Data Matrix Code.

@author bbrown@google.com (Brian Brown)