Paragraph.fromJson constructor

Paragraph.fromJson(
  1. Map json_
)

Implementation

Paragraph.fromJson(core.Map json_)
    : this(
        boundingBox: json_.containsKey('boundingBox')
            ? BoundingPoly.fromJson(
                json_['boundingBox'] as core.Map<core.String, core.dynamic>)
            : null,
        confidence: json_.containsKey('confidence')
            ? (json_['confidence'] as core.num).toDouble()
            : null,
        property: json_.containsKey('property')
            ? TextProperty.fromJson(
                json_['property'] as core.Map<core.String, core.dynamic>)
            : null,
        words: json_.containsKey('words')
            ? (json_['words'] as core.List)
                .map((value) => Word.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );