convert from json dictionary to  entity object