toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (explicitContentDetectionConfig != null)
        'explicitContentDetectionConfig': explicitContentDetectionConfig!,
      if (faceDetectionConfig != null)
        'faceDetectionConfig': faceDetectionConfig!,
      if (labelDetectionConfig != null)
        'labelDetectionConfig': labelDetectionConfig!,
      if (objectTrackingConfig != null)
        'objectTrackingConfig': objectTrackingConfig!,
      if (personDetectionConfig != null)
        'personDetectionConfig': personDetectionConfig!,
      if (segments != null) 'segments': segments!,
      if (shotChangeDetectionConfig != null)
        'shotChangeDetectionConfig': shotChangeDetectionConfig!,
      if (speechTranscriptionConfig != null)
        'speechTranscriptionConfig': speechTranscriptionConfig!,
      if (textDetectionConfig != null)
        'textDetectionConfig': textDetectionConfig!,
    };