# This file was generated by liblab | https://liblab.com/

from __future__ import annotations
from .utils.json_map import JsonMap
from .base import BaseModel
from .adjusted_height_unit_of_measurement import AdjustedHeightUnitOfMeasurement


@JsonMap({"value": "Value", "unit_of_measurement": "UnitOfMeasurement"})
class FreightDensityInfoAdjustedHeight(BaseModel):
    """Container to hold Adjusted Height information.  Required if AdjustedHeightIndicator is present.

    :param value: Adjusted Height value for the handling unit.
    :type value: str
    :param unit_of_measurement: Unit of Measurement container for the Adjusted height.
    :type unit_of_measurement: AdjustedHeightUnitOfMeasurement
    """

    def __init__(
        self, value: str, unit_of_measurement: AdjustedHeightUnitOfMeasurement
    ):
        self.value = value
        self.unit_of_measurement = self._define_object(
            unit_of_measurement, AdjustedHeightUnitOfMeasurement
        )
