Instantiate a new UnitsAvailableDetails from a dict (generally from
        loading a JSON response). The data used to instantiate the
        UnitsAvailableDetails is a shallow copy of the dict passed in, with any
        complex child types instantiated appropriately.

def from_dict(data, ctx):
        """
        Instantiate a new UnitsAvailableDetails from a dict (generally from
        loading a JSON response). The data used to instantiate the
        UnitsAvailableDetails is a shallow copy of the dict passed in, with any
        complex child types instantiated appropriately.
        """

        data = data.copy()

        if data.get('long') is not None:
            data['long'] = ctx.convert_decimal_number(
                data.get('long')
            )

        if data.get('short') is not None:
            data['short'] = ctx.convert_decimal_number(
                data.get('short')
            )

        return UnitsAvailableDetails(**data)