/// <summary>
        ///     Allows you to convert the current package item object to the DTO equivalent for use with the REST API
        /// </summary>
        /// <returns>A new instance of OrderPackageItemDTO</returns>
        public OrderPackageItemDTO ToDto()
        {
            var dto = new OrderPackageItemDTO();

            dto.LineItemId  = LineItemId;
            dto.ProductBvin = ProductBvin ?? string.Empty;
            dto.Quantity    = Quantity;

            return(dto);
        }
        /// <summary>
        ///     Allows you to populate the current package item object using an OrderPackageItemDTO instance
        /// </summary>
        /// <param name="dto">An instance of the package item from the REST API</param>
        public void FromDto(OrderPackageItemDTO dto)
        {
            if (dto == null)
            {
                return;
            }

            LineItemId  = dto.LineItemId;
            ProductBvin = dto.ProductBvin ?? string.Empty;
            Quantity    = dto.Quantity;
        }