Word.fromJson constructor

Word.fromJson(
  1. Map json_
)

Implementation

Word.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,
        symbols: json_.containsKey('symbols')
            ? (json_['symbols'] as core.List)
                .map((value) => Symbol.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );