# WordBox.fromJson constructor

WordBox.fromJson(

1. Map<String, dynamic> json

)

## Implementation

    factory WordBox.fromJson(Map<String, dynamic> json) => WordBox(
          text: json["text"] as String,
          boundingRect: Rectangle<int>(
              ((json["boundingRect"] as Map<String, dynamic>)["x"] as int),
              ((json["boundingRect"] as Map<String, dynamic>)["y"] as int),
              ((json["boundingRect"] as Map<String, dynamic>)["width"] as int),
              ((json["boundingRect"] as Map<String, dynamic>)["height"] as int)),
          recognitionConfidence: json.containsKey("recognitionConfidence")
              ? (json["recognitionConfidence"] as num).toDouble()
              : 0.0,
        );