GoogleCloudVideointelligenceV1p1beta1LabelAnnotation.fromJson constructor

GoogleCloudVideointelligenceV1p1beta1LabelAnnotation.fromJson(
  1. Map _json
)

Implementation

GoogleCloudVideointelligenceV1p1beta1LabelAnnotation.fromJson(
    core.Map _json) {
  if (_json.containsKey("categoryEntities")) {
    categoryEntities = (_json["categoryEntities"] as core.List)
        .map<GoogleCloudVideointelligenceV1p1beta1Entity>((value) =>
            new GoogleCloudVideointelligenceV1p1beta1Entity.fromJson(value))
        .toList();
  }
  if (_json.containsKey("entity")) {
    entity = new GoogleCloudVideointelligenceV1p1beta1Entity.fromJson(
        _json["entity"]);
  }
  if (_json.containsKey("frames")) {
    frames = (_json["frames"] as core.List)
        .map<GoogleCloudVideointelligenceV1p1beta1LabelFrame>((value) =>
            new GoogleCloudVideointelligenceV1p1beta1LabelFrame.fromJson(
                value))
        .toList();
  }
  if (_json.containsKey("segments")) {
    segments = (_json["segments"] as core.List)
        .map<GoogleCloudVideointelligenceV1p1beta1LabelSegment>((value) =>
            new GoogleCloudVideointelligenceV1p1beta1LabelSegment.fromJson(
                value))
        .toList();
  }
  if (_json.containsKey("version")) {
    version = _json["version"];
  }
}