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

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

        data = data.copy()

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

        return ClientConfigureRejectTransaction(**data)