GoogleCloudVideointelligenceV1VideoContext.fromJson constructor

GoogleCloudVideointelligenceV1VideoContext.fromJson(
  1. Map _json
)

Implementation

GoogleCloudVideointelligenceV1VideoContext.fromJson(core.Map _json) {
  if (_json.containsKey("explicitContentDetectionConfig")) {
    explicitContentDetectionConfig =
        new GoogleCloudVideointelligenceV1ExplicitContentDetectionConfig
            .fromJson(_json["explicitContentDetectionConfig"]);
  }
  if (_json.containsKey("labelDetectionConfig")) {
    labelDetectionConfig =
        new GoogleCloudVideointelligenceV1LabelDetectionConfig.fromJson(
            _json["labelDetectionConfig"]);
  }
  if (_json.containsKey("objectTrackingConfig")) {
    objectTrackingConfig =
        new GoogleCloudVideointelligenceV1ObjectTrackingConfig.fromJson(
            _json["objectTrackingConfig"]);
  }
  if (_json.containsKey("segments")) {
    segments = (_json["segments"] as core.List)
        .map<GoogleCloudVideointelligenceV1VideoSegment>((value) =>
            new GoogleCloudVideointelligenceV1VideoSegment.fromJson(value))
        .toList();
  }
  if (_json.containsKey("shotChangeDetectionConfig")) {
    shotChangeDetectionConfig =
        new GoogleCloudVideointelligenceV1ShotChangeDetectionConfig.fromJson(
            _json["shotChangeDetectionConfig"]);
  }
  if (_json.containsKey("speechTranscriptionConfig")) {
    speechTranscriptionConfig =
        new GoogleCloudVideointelligenceV1SpeechTranscriptionConfig.fromJson(
            _json["speechTranscriptionConfig"]);
  }
  if (_json.containsKey("textDetectionConfig")) {
    textDetectionConfig =
        new GoogleCloudVideointelligenceV1TextDetectionConfig.fromJson(
            _json["textDetectionConfig"]);
  }
}