Predictions.fromJson constructor

Predictions.fromJson(
  1. Map<String, dynamic> json
)

Implementation

Predictions.fromJson(Map<String, dynamic> json) {
  probability = json['probability'];
  tagId = json['tagId'];
  tagName = json['tagName'];
  left = json['left'] ?? 0;
  top = json['top'] ?? 0;
  width = json['width'] ?? 0;
  height = json['height'] ?? 0;
  boundingBox = Rect.fromLTWH(left!, top!, width!, height!);
}