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

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

        data = data.copy()

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

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

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

        return HomeConversions(**data)