GoogleCloudDocumentaiV1DocumentPage.fromJson constructor
GoogleCloudDocumentaiV1DocumentPage.fromJson(
- Map json_
Implementation
GoogleCloudDocumentaiV1DocumentPage.fromJson(core.Map json_)
: this(
blocks: json_.containsKey('blocks')
? (json_['blocks'] as core.List)
.map((value) =>
GoogleCloudDocumentaiV1DocumentPageBlock.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
detectedBarcodes: json_.containsKey('detectedBarcodes')
? (json_['detectedBarcodes'] as core.List)
.map((value) =>
GoogleCloudDocumentaiV1DocumentPageDetectedBarcode
.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
detectedLanguages: json_.containsKey('detectedLanguages')
? (json_['detectedLanguages'] as core.List)
.map((value) =>
GoogleCloudDocumentaiV1DocumentPageDetectedLanguage
.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
dimension: json_.containsKey('dimension')
? GoogleCloudDocumentaiV1DocumentPageDimension.fromJson(
json_['dimension'] as core.Map<core.String, core.dynamic>)
: null,
formFields: json_.containsKey('formFields')
? (json_['formFields'] as core.List)
.map((value) =>
GoogleCloudDocumentaiV1DocumentPageFormField.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
image: json_.containsKey('image')
? GoogleCloudDocumentaiV1DocumentPageImage.fromJson(
json_['image'] as core.Map<core.String, core.dynamic>)
: null,
imageQualityScores: json_.containsKey('imageQualityScores')
? GoogleCloudDocumentaiV1DocumentPageImageQualityScores.fromJson(
json_['imageQualityScores']
as core.Map<core.String, core.dynamic>)
: null,
layout: json_.containsKey('layout')
? GoogleCloudDocumentaiV1DocumentPageLayout.fromJson(
json_['layout'] as core.Map<core.String, core.dynamic>)
: null,
lines: json_.containsKey('lines')
? (json_['lines'] as core.List)
.map((value) =>
GoogleCloudDocumentaiV1DocumentPageLine.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) =>
GoogleCloudDocumentaiV1DocumentPageParagraph.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
provenance: json_.containsKey('provenance')
? GoogleCloudDocumentaiV1DocumentProvenance.fromJson(
json_['provenance'] as core.Map<core.String, core.dynamic>)
: null,
symbols: json_.containsKey('symbols')
? (json_['symbols'] as core.List)
.map((value) =>
GoogleCloudDocumentaiV1DocumentPageSymbol.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
tables: json_.containsKey('tables')
? (json_['tables'] as core.List)
.map((value) =>
GoogleCloudDocumentaiV1DocumentPageTable.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
tokens: json_.containsKey('tokens')
? (json_['tokens'] as core.List)
.map((value) =>
GoogleCloudDocumentaiV1DocumentPageToken.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
transforms: json_.containsKey('transforms')
? (json_['transforms'] as core.List)
.map((value) =>
GoogleCloudDocumentaiV1DocumentPageMatrix.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
visualElements: json_.containsKey('visualElements')
? (json_['visualElements'] as core.List)
.map((value) =>
GoogleCloudDocumentaiV1DocumentPageVisualElement.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
);