toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (contexts != null) 'contexts': contexts!,
      if (geoLocation != null) 'geoLocation': geoLocation!,
      if (payload != null) 'payload': payload!,
      if (platform != null) 'platform': platform!,
      if (resetContexts != null) 'resetContexts': resetContexts!,
      if (sentimentAnalysisRequestConfig != null)
        'sentimentAnalysisRequestConfig': sentimentAnalysisRequestConfig!,
      if (sessionEntityTypes != null)
        'sessionEntityTypes': sessionEntityTypes!,
      if (timeZone != null) 'timeZone': timeZone!,
      if (webhookHeaders != null) 'webhookHeaders': webhookHeaders!,
    };