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;
    }
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;
    }
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 ; }
Convert given input data to a ObjectInFolderData object

@param array|null $data
@return ObjectInFolderData|null
Convert given input data to a ObjectInFolderData object