/**
  * @param stdClass $o
  * @return \ModelModel
  */
 public static function fromObject($o)
 {
     $model = new ModelModel();
     $model->setId($o->id);
     $model->setStudyId($o->studyId);
     $model->setTitle($o->title);
     $model->setNamespace($o->namespace);
     $model->setText($o->text);
     $model->setCompiled($o->compiled);
     return $model;
 }