GoogleCloudVideointelligenceV1NormalizedBoundingBox.fromJson constructor

GoogleCloudVideointelligenceV1NormalizedBoundingBox.fromJson(
  1. Map _json
)

Implementation

GoogleCloudVideointelligenceV1NormalizedBoundingBox.fromJson(core.Map _json) {
  if (_json.containsKey("bottom")) {
    bottom = _json["bottom"].toDouble();
  }
  if (_json.containsKey("left")) {
    left = _json["left"].toDouble();
  }
  if (_json.containsKey("right")) {
    right = _json["right"].toDouble();
  }
  if (_json.containsKey("top")) {
    top = _json["top"].toDouble();
  }
}