added public api to convert row into entity