

@staticmethod
def _from_model_sub_schema(notify_sub_schema_model):
    notify_sub_schema = {
        
    }
    if getattr(notify_sub_schema_model, 'message', None):
        notify_sub_schema['message'] = notify_sub_schema_model.message
    if getattr(notify_sub_schema_model, 'message', None):
        notify_sub_schema['data'] = notify_sub_schema_model.data
    routes = (getattr(notify_sub_schema_model, 'routes') or getattr(notify_sub_schema, 'channels'))
    if routes:
        notify_sub_schema['routes'] = routes
    return notify_sub_schema

dataset/ETHPy150Open StackStorm/st2/st2common/st2common/models/api/notification.py NotificationsHelper._from_model_sub_schema/VarMisuse@76/150 `notify_sub_schema_model`->`notify_sub_schema`