How to extend the braintree module in magento2

Currently, I migrate my custom module magento1 braintree in magento2. In magento1, I use gene braintree extension. There are some methods that I am extended but the same methods are not there in magento2. can you please tell how to extend the methods.