intentDetectionConfidence is coming inside query set in dialogflow v2.0
but in your code you reading intentDetectionConfidence as response.body['intentDetectionConfidence'] but you should read as response.body['queryResult']['intentDetectionConfidence'] or add intentDetectionConfidence in queryResult class.
Please make the update in package and push it
intentDetectionConfidence is coming inside query set in dialogflow v2.0 but in your code you reading intentDetectionConfidence as response.body['intentDetectionConfidence'] but you should read as response.body['queryResult']['intentDetectionConfidence'] or add intentDetectionConfidence in queryResult class. Please make the update in package and push it