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

from .utils.json_map import JsonMap
from .base import BaseModel


@JsonMap({"code": "Code", "description": "Description"})
class HandlingUnitsType(BaseModel):
    """Handling Unit Type for Density based rating.

    :param code: The code associated with Handling Unit Type.  Valid values: SKD = Skid CBY = CarboyPLT = PalletTOT = TotesLOO = LooseOTH = Other
    :type code: str
    :param description: A description of the code for the Handling Unit type., defaults to None
    :type description: str, optional
    """

    def __init__(self, code: str, description: str = None):
        self.code = code
        if description is not None:
            self.description = description
