GoogleCloudVideointelligenceV1p3beta1Track.fromJson constructor

GoogleCloudVideointelligenceV1p3beta1Track.fromJson(
  1. Map _json
)

Implementation

GoogleCloudVideointelligenceV1p3beta1Track.fromJson(core.Map _json) {
  if (_json.containsKey("attributes")) {
    attributes = (_json["attributes"] as core.List)
        .map<GoogleCloudVideointelligenceV1p3beta1DetectedAttribute>(
            (value) =>
                new GoogleCloudVideointelligenceV1p3beta1DetectedAttribute
                    .fromJson(value))
        .toList();
  }
  if (_json.containsKey("confidence")) {
    confidence = _json["confidence"].toDouble();
  }
  if (_json.containsKey("segment")) {
    segment = new GoogleCloudVideointelligenceV1p3beta1VideoSegment.fromJson(
        _json["segment"]);
  }
  if (_json.containsKey("timestampedObjects")) {
    timestampedObjects = (_json["timestampedObjects"] as core.List)
        .map<GoogleCloudVideointelligenceV1p3beta1TimestampedObject>(
            (value) =>
                new GoogleCloudVideointelligenceV1p3beta1TimestampedObject
                    .fromJson(value))
        .toList();
  }
}