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

        data = data.copy()

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

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