toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (analyzeQueryTextSentiment != null)
        'analyzeQueryTextSentiment': analyzeQueryTextSentiment!,
      if (channel != null) 'channel': channel!,
      if (currentPage != null) 'currentPage': currentPage!,
      if (disableWebhook != null) 'disableWebhook': disableWebhook!,
      if (endUserMetadata != null) 'endUserMetadata': endUserMetadata!,
      if (flowVersions != null) 'flowVersions': flowVersions!,
      if (geoLocation != null) 'geoLocation': geoLocation!,
      if (parameters != null) 'parameters': parameters!,
      if (payload != null) 'payload': payload!,
      if (searchConfig != null) 'searchConfig': searchConfig!,
      if (sessionEntityTypes != null)
        'sessionEntityTypes': sessionEntityTypes!,
      if (sessionTtl != null) 'sessionTtl': sessionTtl!,
      if (timeZone != null) 'timeZone': timeZone!,
      if (webhookHeaders != null) 'webhookHeaders': webhookHeaders!,
    };