Magento 2.2.5 – The Magento2 module created, but trying to display the grid in the administrator gets the following error:

I am new to magento and am learning how to create a module in magento.

Fatal error: The Magento UI TemplateEngine Xhtml Result :: __ toString () method must not throw exception, caught. TypeError: The 1 argument passed to Magento Framework View Element UiComponent DataProvider DataProvider :: searchResultToOutput () must implement the Magento Framework Api Search SearchResultInterface interface, Chirpn instance ProductSerialNumber Model ResourceModel ProductSerialNumber Data Collection, called in E: wamp64 www utt vendor magento framework View Element UiComponent DataProvider DataProvider.php at line 284 in E: wamp64 www utt vendor magento module-ui Component Wrapper UiComponent.php at line 0

my di.xml file is as below:


    
        wk_grid_records
        Chirpn  ProductSerialNumber  Model  ResourceModel  ProductSerialNumber
    


    
        
            Chirpn  ProductSerialNumber  Model  ResourceModel  ProductSerialNumber  Collection
        
    


    
        Magento  Framework  Filesystem  Driver  File
    


    
        customLogHandler
        
            Chirpn  ProductSerialNumber  Logger  Handler