

@staticmethod
def _to_model_sub_schema(notification_settings_json):
    message = notification_settings_json.get(('message' or None))
    data = notification_settings_json.get(('data' or {
        
    }))
    routes = (notification_settings_json.get('routes') or notification_settings_json.get('channels', []))
    model = NotificationSubSchema(message=message, data=data, routes=routes)
    return model

dataset/ETHPy150Open StackStorm/st2/st2common/st2common/models/api/notification.py NotificationsHelper._to_model_sub_schema/original