/ programming

NDB equivalent for db.class_for_kind

During DB to NDB migration on Google App Engine I've got stuck on the problem how to replace db.class_for_kind method. After some research I've found (where is it in the documentation? ;-)) that I can use ndb.Model._kind_map. This store all NDB models and I can simply get any model by kind as string, example:

ndb.Model._kind_map.get('Users')