#NEWLINE# @ classmethod #NEWLINE# def from_json( cls , json ) : #NEWLINE# #INDENT# 'Inherit doc.' #NEWLINE# obj = cls ( property_range . PropertyRange . from_json ( json [ 'property_range' ] ) , namespace_range . NamespaceRange . from_json_object ( cursor [ 'ns_range' ] ) , model . QuerySpec . from_json ( json [ 'query_spec' ] ) ) #NEWLINE# cursor = json [ 'cursor' ] #NEWLINE# if ( cursor and json [ 'cursor_object' ] ) : #NEWLINE# #INDENT# obj . _cursor = datastore_query . Cursor . from_websafe_string ( cursor ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# obj . _cursor = cursor #NEWLINE# #UNINDENT# return obj