GoogleCloudVideointelligenceV1p3beta1LogoRecognitionAnnotation.fromJson constructor

GoogleCloudVideointelligenceV1p3beta1LogoRecognitionAnnotation.fromJson(
  1. Map _json
)

Implementation

GoogleCloudVideointelligenceV1p3beta1LogoRecognitionAnnotation.fromJson(
    core.Map _json) {
  if (_json.containsKey("entity")) {
    entity = new GoogleCloudVideointelligenceV1p3beta1Entity.fromJson(
        _json["entity"]);
  }
  if (_json.containsKey("segments")) {
    segments = (_json["segments"] as core.List)
        .map<GoogleCloudVideointelligenceV1p3beta1VideoSegment>((value) =>
            new GoogleCloudVideointelligenceV1p3beta1VideoSegment.fromJson(
                value))
        .toList();
  }
  if (_json.containsKey("tracks")) {
    tracks = (_json["tracks"] as core.List)
        .map<GoogleCloudVideointelligenceV1p3beta1Track>((value) =>
            new GoogleCloudVideointelligenceV1p3beta1Track.fromJson(value))
        .toList();
  }
}