protected function getFilePayload(?array $files) : ?array
    {
        if (empty($files)) {
            return null;
        }

        $files = array_filter($files, function($file) {
            return $file instanceof ResourceSettings || (isset($file['key']) && isset($file['filename']));
        });

        return $files;
    }
protected function getFilePayload(?array $files) : ?array
    {
        if (empty($files)) {
            return null;
        }

        $files = array_filter($files, function($file) {
            return $file instanceof ResourceSettings || (isset($file['key']) && isset($file['filename']));
        });

        return $files;
    }
protected function getFilePayload ( ? array $ files ) : ? array { if ( empty ( $ files ) ) { return null ; } $ files = array_filter ( $ files , function ( $ file ) { return $ file instanceof ResourceSettings || ( isset ( $ file [ 'key' ] ) && isset ( $ file [ 'filename' ] ) ) ; } ) ; return $ files ; }
Get the file payload

@param array|null $files
@return array|null
Get the file payload