AIResponse constructor
AIResponse({
- required Map body,
Implementation
AIResponse({required Map body}) {
_responseId = body['responseId'];
_intentDetectionConfidence = body['intentDetectionConfidence'];
_queryResult = QueryResult(body['queryResult']);
_languageCode = body['languageCode'];
_diagnosticInfo = (body['diagnosticInfo'] != null
? DiagnosticInfo(body['diagnosticInfo'])
: null);
_webhookStatus = body['webhookStatus'] != null
? WebhookStatus(body['webhookStatus'])
: null;
}