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

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

        data = data.copy()

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

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

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

        return InstrumentCommission(**data)