GoogleCloudDocumentaiV1beta3DocumentPage.fromJson constructor
GoogleCloudDocumentaiV1beta3DocumentPage.fromJson(
- Map _json
Implementation
GoogleCloudDocumentaiV1beta3DocumentPage.fromJson(core.Map _json)
: this(
blocks: _json.containsKey('blocks')
? (_json['blocks'] as core.List)
.map((value) =>
GoogleCloudDocumentaiV1beta3DocumentPageBlock.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
detectedLanguages: _json.containsKey('detectedLanguages')
? (_json['detectedLanguages'] as core.List)
.map((value) =>
GoogleCloudDocumentaiV1beta3DocumentPageDetectedLanguage
.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
dimension: _json.containsKey('dimension')
? GoogleCloudDocumentaiV1beta3DocumentPageDimension.fromJson(
_json['dimension'] as core.Map<core.String, core.dynamic>)
: null,
formFields: _json.containsKey('formFields')
? (_json['formFields'] as core.List)
.map((value) =>
GoogleCloudDocumentaiV1beta3DocumentPageFormField
.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
image: _json.containsKey('image')
? GoogleCloudDocumentaiV1beta3DocumentPageImage.fromJson(
_json['image'] as core.Map<core.String, core.dynamic>)
: null,
layout: _json.containsKey('layout')
? GoogleCloudDocumentaiV1beta3DocumentPageLayout.fromJson(
_json['layout'] as core.Map<core.String, core.dynamic>)
: null,
lines: _json.containsKey('lines')
? (_json['lines'] as core.List)
.map((value) =>
GoogleCloudDocumentaiV1beta3DocumentPageLine.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
pageNumber: _json.containsKey('pageNumber')
? _json['pageNumber'] as core.int
: null,
paragraphs: _json.containsKey('paragraphs')
? (_json['paragraphs'] as core.List)
.map((value) =>
GoogleCloudDocumentaiV1beta3DocumentPageParagraph
.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
provenance: _json.containsKey('provenance')
? GoogleCloudDocumentaiV1beta3DocumentProvenance.fromJson(
_json['provenance'] as core.Map<core.String, core.dynamic>)
: null,
tables: _json.containsKey('tables')
? (_json['tables'] as core.List)
.map((value) =>
GoogleCloudDocumentaiV1beta3DocumentPageTable.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
tokens: _json.containsKey('tokens')
? (_json['tokens'] as core.List)
.map((value) =>
GoogleCloudDocumentaiV1beta3DocumentPageToken.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
transforms: _json.containsKey('transforms')
? (_json['transforms'] as core.List)
.map((value) =>
GoogleCloudDocumentaiV1beta3DocumentPageMatrix.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
visualElements: _json.containsKey('visualElements')
? (_json['visualElements'] as core.List)
.map((value) =>
GoogleCloudDocumentaiV1beta3DocumentPageVisualElement
.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
);