# Line.fromJson constructor

Line.fromJson(

1. Map<String, dynamic> json

)

## Implementation

    factory Line.fromJson(Map<String, dynamic> json) => Line(
          text: json["text"] as String,
          confidence: (json["confidence"] as num).toDouble(),
          roi: (json["roi"] as List<dynamic>)
              .map((it) => Point<double>(
                  ((it as Map<String, dynamic>)["x"] as num).toDouble(),
                  ((it)["y"] as num).toDouble()))
              .toList(),
          words: (json["words"] as List<dynamic>)
              .map((it) => Word.fromJson(it as Map<String, dynamic>))
              .toList(),
        );