def get_settings(self, integration_id):
        """Return settings for given integration as a dictionary."""

        try:
            integration = self.get(integration_id=integration_id)
            return json.loads(integration.settings)
        except (self.model.DoesNotExist, ValueError):
            return {}
Return settings for given integration as a dictionary.