original_string: public function convertObjectInFolder(array $data = null)
      {
          if (empty($data)) {
              return null;
          }
  
          $objectInFolderData = new ObjectInFolderData();
          $object = $this->convertObject($data[JSONConstants::JSON_OBJECTINFOLDER_OBJECT] ?? []);
  
          if ($object !== null) {
              $objectInFolderData->setObject($object);
          }
  
          $objectInFolderData->setPathSegment((string) $data[JSONConstants::JSON_OBJECTINFOLDER_PATH_SEGMENT] ?? null);
          $objectInFolderData->setExtensions($this->convertExtension($data, JSONConstants::getObjectInFolderKeys()));
  
          return $objectInFolderData;
      }
code: public function convertObjectInFolder(array $data = null)
      {
          if (empty($data)) {
              return null;
          }
  
          $objectInFolderData = new ObjectInFolderData();
          $object = $this->convertObject($data[JSONConstants::JSON_OBJECTINFOLDER_OBJECT] ?? []);
  
          if ($object !== null) {
              $objectInFolderData->setObject($object);
          }
  
          $objectInFolderData->setPathSegment((string) $data[JSONConstants::JSON_OBJECTINFOLDER_PATH_SEGMENT] ?? null);
          $objectInFolderData->setExtensions($this->convertExtension($data, JSONConstants::getObjectInFolderKeys()));
  
          return $objectInFolderData;
      }
code_tokens: public function convertObjectInFolder ( array $ data = null ) { if ( empty ( $ data ) ) { return null ; } $ objectInFolderData = new ObjectInFolderData ( ) ; $ object = $ this -> convertObject ( $ data [ JSONConstants :: JSON_OBJECTINFOLDER_OBJECT ] ?? [ ] ) ; if ( $ object !== null ) { $ objectInFolderData -> setObject ( $ object ) ; } $ objectInFolderData -> setPathSegment ( ( string ) $ data [ JSONConstants :: JSON_OBJECTINFOLDER_PATH_SEGMENT ] ?? null ) ; $ objectInFolderData -> setExtensions ( $ this -> convertExtension ( $ data , JSONConstants :: getObjectInFolderKeys ( ) ) ) ; return $ objectInFolderData ; }
docstring: Convert given input data to a ObjectInFolderData object
  
  @param array|null $data
  @return ObjectInFolderData|null
docstring_tokens: Convert given input data to a ObjectInFolderData object