def entity(self) -> dict:        
        """ parse self into dictionary """    
        image = {}
        image['PartitionKey'] = self.getPartitionKey()
        image['RowKey'] = self.getRowKey()
        for key, value in vars(self).items():
            if not key.startswith('_') and key not in ['','PartitionKey','RowKey']:
                if type(value) in [str, int, bool, datetime.date, datetime.datetime]:
                    image[key] = value                    
        return image
parse self into dictionary