/**
  * parse input data
  * @return $this
  */
 public function parse()
 {
     $data = [];
     foreach ($this->json as $key => $value) {
         $this->setProperty($data, $key, $value);
     }
     $entity = $this->factory->createEntity($data, EntityFactory::FORMAT_PARAM);
     $this->setObject($entity);
 }
 /**
  * Creates an entity from a row. Automatically determines the entity class
  * from the current mapper name (MyEntityMapper -> MyEntity)
  * @param array $row the row which should be converted to an entity
  * @return Entity the entity
  */
 protected function mapRowToEntity($row)
 {
     return $this->factory->createEntity($row, EntityFactory::FORMAT_ROW);
 }