GoogleCloudVideointelligenceV1p3beta1StreamingVideoAnnotationResults.fromJson constructor

GoogleCloudVideointelligenceV1p3beta1StreamingVideoAnnotationResults.fromJson(
  1. Map _json
)

Implementation

GoogleCloudVideointelligenceV1p3beta1StreamingVideoAnnotationResults.fromJson(
    core.Map _json) {
  if (_json.containsKey("explicitAnnotation")) {
    explicitAnnotation =
        new GoogleCloudVideointelligenceV1p3beta1ExplicitContentAnnotation
            .fromJson(_json["explicitAnnotation"]);
  }
  if (_json.containsKey("labelAnnotations")) {
    labelAnnotations = (_json["labelAnnotations"] as core.List)
        .map<GoogleCloudVideointelligenceV1p3beta1LabelAnnotation>((value) =>
            new GoogleCloudVideointelligenceV1p3beta1LabelAnnotation.fromJson(
                value))
        .toList();
  }
  if (_json.containsKey("objectAnnotations")) {
    objectAnnotations = (_json["objectAnnotations"] as core.List)
        .map<GoogleCloudVideointelligenceV1p3beta1ObjectTrackingAnnotation>(
            (value) =>
                new GoogleCloudVideointelligenceV1p3beta1ObjectTrackingAnnotation
                    .fromJson(value))
        .toList();
  }
  if (_json.containsKey("shotAnnotations")) {
    shotAnnotations = (_json["shotAnnotations"] as core.List)
        .map<GoogleCloudVideointelligenceV1p3beta1VideoSegment>((value) =>
            new GoogleCloudVideointelligenceV1p3beta1VideoSegment.fromJson(
                value))
        .toList();
  }
}