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

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

        data = data.copy()

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

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

        return LiquidityRegenerationScheduleStep(**data)