def map_entity(self, entity: dal.AssetClass):
obj = model.AssetClass()<EOL>obj.id = entity.id<EOL>obj.parent_id = entity.parentid<EOL>obj.name = entity.name<EOL>obj.allocation = entity.allocation<EOL>obj.sort_order = entity.sortorder<EOL>if entity.parentid == None:<EOL><INDENT>obj.depth = <NUM_LIT:0><EOL><DEDENT>return obj<EOL>
maps data from entity -> object