def _from_dict(entry):
 name = entry.get('name')
 code = entry.get('code')
 message = entry.get('message')
 return (name, ErrorCode(code, message))

def _from_dict ( entry ) : name = entry . get ( 'name' ) code = entry . get ( 'code' ) message = entry . get ( 'message' ) return ( name , ErrorCode ( code , message ) )
build a :class:errorcode object from a json entry .