def _translate_message(message):
 return {'id': message['id'], 'project_id': message['project_id'], 'request_id': message['request_id'], 'resource_type': message['resource_type'], 'resource_uuid': message.get('resource_uuid'), 'event_id': message['event_id'], 'message_level': message['message_level'], 'created_at': message['created_at'], 'expires_at': message.get('expires_at')}

def _translate_message ( message ) : return { 'id' : message [ 'id' ] , 'project_id' : message [ 'project_id' ] , 'request_id' : message [ 'request_id' ] , 'resource_type' : message [ 'resource_type' ] , 'resource_uuid' : message . get ( 'resource_uuid' ) , 'event_id' : message [ 'event_id' ] , 'message_level' : message [ 'message_level' ] , 'created_at' : message [ 'created_at' ] , 'expires_at' : message . get ( 'expires_at' ) }
translate the message model to a dict .