code: public static function toModel(stdClass $object)
      {
          $model = Base::toModel($object);
  
          if (Variable::TYPE_JSON === $model->getType()) {
              $model->setValue(json_decode($model->getValue()));
          }
  
          return $model;
      }
docs: {@inheritdoc}