toJson method

Map<String, Object> toJson ()

Implementation

core.Map<core.String, core.Object> toJson() {
  final core.Map<core.String, core.Object> _json =
      new core.Map<core.String, core.Object>();
  if (explicitContentDetectionConfig != null) {
    _json["explicitContentDetectionConfig"] =
        (explicitContentDetectionConfig).toJson();
  }
  if (labelDetectionConfig != null) {
    _json["labelDetectionConfig"] = (labelDetectionConfig).toJson();
  }
  if (objectTrackingConfig != null) {
    _json["objectTrackingConfig"] = (objectTrackingConfig).toJson();
  }
  if (segments != null) {
    _json["segments"] = segments.map((value) => (value).toJson()).toList();
  }
  if (shotChangeDetectionConfig != null) {
    _json["shotChangeDetectionConfig"] = (shotChangeDetectionConfig).toJson();
  }
  if (speechTranscriptionConfig != null) {
    _json["speechTranscriptionConfig"] = (speechTranscriptionConfig).toJson();
  }
  if (textDetectionConfig != null) {
    _json["textDetectionConfig"] = (textDetectionConfig).toJson();
  }
  return _json;
}