GoogleCloudDocumentaiV1beta1DocumentTextAnchor.fromJson constructor

GoogleCloudDocumentaiV1beta1DocumentTextAnchor.fromJson(
  1. Map _json
)

Implementation

GoogleCloudDocumentaiV1beta1DocumentTextAnchor.fromJson(core.Map _json)
    : this(
        content: _json.containsKey('content')
            ? _json['content'] as core.String
            : null,
        textSegments: _json.containsKey('textSegments')
            ? (_json['textSegments'] as core.List)
                .map<GoogleCloudDocumentaiV1beta1DocumentTextAnchorTextSegment>(
                    (value) =>
                        GoogleCloudDocumentaiV1beta1DocumentTextAnchorTextSegment
                            .fromJson(
                                value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );