getPackaging method
Returns the packaging from the controllers.
Implementation
ProductPackaging getPackaging() {
final ProductPackaging packaging = ProductPackaging();
packaging.shape = _getLocalizedTag(controllerShape);
packaging.material = _getLocalizedTag(controllerMaterial);
packaging.recycling = _getLocalizedTag(controllerRecycling);
packaging.quantityPerUnit = _getString(controllerQuantity);
packaging.weightMeasured = _getParsedDecimalController(controllerWeight);
packaging.numberOfUnits = _getParsedUnitController(controllerUnits);
return packaging;
}