GoogleCloudVideointelligenceV1p2beta1TextSegment.fromJson constructor

GoogleCloudVideointelligenceV1p2beta1TextSegment.fromJson(
  1. Map _json
)

Implementation

GoogleCloudVideointelligenceV1p2beta1TextSegment.fromJson(core.Map _json) {
  if (_json.containsKey("confidence")) {
    confidence = _json["confidence"].toDouble();
  }
  if (_json.containsKey("frames")) {
    frames = (_json["frames"] as core.List)
        .map<GoogleCloudVideointelligenceV1p2beta1TextFrame>((value) =>
            new GoogleCloudVideointelligenceV1p2beta1TextFrame.fromJson(
                value))
        .toList();
  }
  if (_json.containsKey("segment")) {
    segment = new GoogleCloudVideointelligenceV1p2beta1VideoSegment.fromJson(
        _json["segment"]);
  }
}