TextAnnotation.fromJson constructor

TextAnnotation.fromJson(
  1. Map json_
)

Implementation

TextAnnotation.fromJson(core.Map json_)
    : this(
        pages: json_.containsKey('pages')
            ? (json_['pages'] as core.List)
                .map((value) => Page.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        text: json_.containsKey('text') ? json_['text'] as core.String : null,
      );