GoogleCloudVideointelligenceV1p2beta1ObjectTrackingAnnotation.fromJson constructor

GoogleCloudVideointelligenceV1p2beta1ObjectTrackingAnnotation.fromJson(
  1. Map _json
)

Implementation

GoogleCloudVideointelligenceV1p2beta1ObjectTrackingAnnotation.fromJson(
    core.Map _json) {
  if (_json.containsKey("confidence")) {
    confidence = _json["confidence"].toDouble();
  }
  if (_json.containsKey("entity")) {
    entity = new GoogleCloudVideointelligenceV1p2beta1Entity.fromJson(
        _json["entity"]);
  }
  if (_json.containsKey("frames")) {
    frames = (_json["frames"] as core.List)
        .map<GoogleCloudVideointelligenceV1p2beta1ObjectTrackingFrame>(
            (value) =>
                new GoogleCloudVideointelligenceV1p2beta1ObjectTrackingFrame
                    .fromJson(value))
        .toList();
  }
  if (_json.containsKey("segment")) {
    segment = new GoogleCloudVideointelligenceV1p2beta1VideoSegment.fromJson(
        _json["segment"]);
  }
  if (_json.containsKey("trackId")) {
    trackId = _json["trackId"];
  }
  if (_json.containsKey("version")) {
    version = _json["version"];
  }
}