def _get_job_dict_from_job_model(model):
 return {'id': model.id, 'time_started_msec': model.time_started_msec, 'time_finished_msec': model.time_finished_msec, 'status_code': model.status_code, 'job_type': model.job_type, 'is_cancelable': model.is_cancelable, 'error': model.error, 'human_readable_time_started': ('' if (model.time_started_msec is None) else utils.get_human_readable_time_string(model.time_started_msec)), 'human_readable_time_finished': ('' if (model.time_finished_msec is None) else utils.get_human_readable_time_string(model.time_finished_msec))}

def _get_job_dict_from_job_model ( model ) : return { 'id' : model . id , 'time_started_msec' : model . time_started_msec , 'time_finished_msec' : model . time_finished_msec , 'status_code' : model . status_code , 'job_type' : model . job_type , 'is_cancelable' : model . is_cancelable , 'error' : model . error , 'human_readable_time_started' : ( '' if ( model . time_started_msec is None ) else utils . get_human_readable_time_string ( model . time_started_msec ) ) , 'human_readable_time_finished' : ( '' if ( model . time_finished_msec is None ) else utils . get_human_readable_time_string ( model . time_finished_msec ) ) }
converts an ndb .