GoogleCloudVideointelligenceV1p1beta1SpeechRecognitionAlternative.fromJson constructor

GoogleCloudVideointelligenceV1p1beta1SpeechRecognitionAlternative.fromJson(
  1. Map _json
)

Implementation

GoogleCloudVideointelligenceV1p1beta1SpeechRecognitionAlternative.fromJson(
    core.Map _json) {
  if (_json.containsKey("confidence")) {
    confidence = _json["confidence"].toDouble();
  }
  if (_json.containsKey("transcript")) {
    transcript = _json["transcript"];
  }
  if (_json.containsKey("words")) {
    words = (_json["words"] as core.List)
        .map<GoogleCloudVideointelligenceV1p1beta1WordInfo>((value) =>
            new GoogleCloudVideointelligenceV1p1beta1WordInfo.fromJson(value))
        .toList();
  }
}