protected function fill(Model $model, object $data): Model
    {
        $mapper = new ObjectMapper();

        return $mapper->map($model)->fill($data);
    }
protected function fill(Model $model, object $data): Model
    {
        $mapper = new ObjectMapper();

        return $mapper->map($model)->fill($data);
    }
protected function fill ( Model $ model , object $ data ) : Model { $ mapper = new ObjectMapper ( ) ; return $ mapper -> map ( $ model ) -> fill ( $ data ) ; }
Fill the model with given data.

@param Model  $model
@param object $data

@return Model|mixed
Fill the model with given data .