GoogleCloudVideointelligenceV1p1beta1TextAnnotation.fromJson constructor

GoogleCloudVideointelligenceV1p1beta1TextAnnotation.fromJson(
  1. Map _json
)

Implementation

GoogleCloudVideointelligenceV1p1beta1TextAnnotation.fromJson(core.Map _json) {
  if (_json.containsKey("segments")) {
    segments = (_json["segments"] as core.List)
        .map<GoogleCloudVideointelligenceV1p1beta1TextSegment>((value) =>
            new GoogleCloudVideointelligenceV1p1beta1TextSegment.fromJson(
                value))
        .toList();
  }
  if (_json.containsKey("text")) {
    text = _json["text"];
  }
  if (_json.containsKey("version")) {
    version = _json["version"];
  }
}