public function convertObjectInFolderList(array $data = null)
    {
        if (empty($data)) {
            return null;
        }
        $objects = array_filter(
            array_map(
                [$this, 'convertObjectInFolder'],
                $data[JSONConstants::JSON_OBJECTINFOLDERLIST_OBJECTS] ?? []
            ),
            function ($item) { return !empty($item); }
        );
        $objectInFolderList = new ObjectInFolderList();
        $objectInFolderList->setObjects($objects);
        $objectInFolderList->setHasMoreItems((boolean) ($data[JSONConstants::JSON_OBJECTINFOLDERLIST_HAS_MORE_ITEMS] ?? false));
        $objectInFolderList->setNumItems((integer)($data[JSONConstants::JSON_OBJECTINFOLDERLIST_NUM_ITEMS] ?? count($objects)));
        $objectInFolderList->setExtensions($this->convertExtension($data, JSONConstants::getObjectInFolderListKeys()));

        return $objectInFolderList;
    }
public function convertObjectInFolderList(array $data = null)
    {
        if (empty($data)) {
            return null;
        }
        $objects = array_filter(
            array_map(
                [$this, 'convertObjectInFolder'],
                $data[JSONConstants::JSON_OBJECTINFOLDERLIST_OBJECTS] ?? []
            ),
            function ($item) { return !empty($item); }
        );
        $objectInFolderList = new ObjectInFolderList();
        $objectInFolderList->setObjects($objects);
        $objectInFolderList->setHasMoreItems((boolean) ($data[JSONConstants::JSON_OBJECTINFOLDERLIST_HAS_MORE_ITEMS] ?? false));
        $objectInFolderList->setNumItems((integer)($data[JSONConstants::JSON_OBJECTINFOLDERLIST_NUM_ITEMS] ?? count($objects)));
        $objectInFolderList->setExtensions($this->convertExtension($data, JSONConstants::getObjectInFolderListKeys()));

        return $objectInFolderList;
    }
public function convertObjectInFolderList ( array $ data = null ) { if ( empty ( $ data ) ) { return null ; } $ objects = array_filter ( array_map ( [ $ this , 'convertObjectInFolder' ] , $ data [ JSONConstants :: JSON_OBJECTINFOLDERLIST_OBJECTS ] ?? [ ] ) , function ( $ item ) { return ! empty ( $ item ) ; } ) ; $ objectInFolderList = new ObjectInFolderList ( ) ; $ objectInFolderList -> setObjects ( $ objects ) ; $ objectInFolderList -> setHasMoreItems ( ( boolean ) ( $ data [ JSONConstants :: JSON_OBJECTINFOLDERLIST_HAS_MORE_ITEMS ] ?? false ) ) ; $ objectInFolderList -> setNumItems ( ( integer ) ( $ data [ JSONConstants :: JSON_OBJECTINFOLDERLIST_NUM_ITEMS ] ?? count ( $ objects ) ) ) ; $ objectInFolderList -> setExtensions ( $ this -> convertExtension ( $ data , JSONConstants :: getObjectInFolderListKeys ( ) ) ) ; return $ objectInFolderList ; }
Convert given input data to a ObjectInFolderList object

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