GoogleCloudVideointelligenceV1beta2LabelAnnotation.fromJson constructor

GoogleCloudVideointelligenceV1beta2LabelAnnotation.fromJson(
  1. Map _json
)

Implementation

GoogleCloudVideointelligenceV1beta2LabelAnnotation.fromJson(core.Map _json) {
  if (_json.containsKey("categoryEntities")) {
    categoryEntities = (_json["categoryEntities"] as core.List)
        .map<GoogleCloudVideointelligenceV1beta2Entity>((value) =>
            new GoogleCloudVideointelligenceV1beta2Entity.fromJson(value))
        .toList();
  }
  if (_json.containsKey("entity")) {
    entity = new GoogleCloudVideointelligenceV1beta2Entity.fromJson(
        _json["entity"]);
  }
  if (_json.containsKey("frames")) {
    frames = (_json["frames"] as core.List)
        .map<GoogleCloudVideointelligenceV1beta2LabelFrame>((value) =>
            new GoogleCloudVideointelligenceV1beta2LabelFrame.fromJson(value))
        .toList();
  }
  if (_json.containsKey("segments")) {
    segments = (_json["segments"] as core.List)
        .map<GoogleCloudVideointelligenceV1beta2LabelSegment>((value) =>
            new GoogleCloudVideointelligenceV1beta2LabelSegment.fromJson(
                value))
        .toList();
  }
  if (_json.containsKey("version")) {
    version = _json["version"];
  }
}