GoogleCloudDocumentaiV1beta1DocumentPage.fromJson constructor
GoogleCloudDocumentaiV1beta1DocumentPage.fromJson(
- Map _json
Implementation
GoogleCloudDocumentaiV1beta1DocumentPage.fromJson(core.Map _json)
: this(
blocks: _json.containsKey('blocks')
? (_json['blocks'] as core.List)
.map<GoogleCloudDocumentaiV1beta1DocumentPageBlock>((value) =>
GoogleCloudDocumentaiV1beta1DocumentPageBlock.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
detectedLanguages: _json.containsKey('detectedLanguages')
? (_json['detectedLanguages'] as core.List)
.map<GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage>(
(value) =>
GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage
.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
dimension: _json.containsKey('dimension')
? GoogleCloudDocumentaiV1beta1DocumentPageDimension.fromJson(
_json['dimension'] as core.Map<core.String, core.dynamic>)
: null,
formFields: _json.containsKey('formFields')
? (_json['formFields'] as core.List)
.map<GoogleCloudDocumentaiV1beta1DocumentPageFormField>(
(value) =>
GoogleCloudDocumentaiV1beta1DocumentPageFormField
.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
image: _json.containsKey('image')
? GoogleCloudDocumentaiV1beta1DocumentPageImage.fromJson(
_json['image'] as core.Map<core.String, core.dynamic>)
: null,
layout: _json.containsKey('layout')
? GoogleCloudDocumentaiV1beta1DocumentPageLayout.fromJson(
_json['layout'] as core.Map<core.String, core.dynamic>)
: null,
lines: _json.containsKey('lines')
? (_json['lines'] as core.List)
.map<GoogleCloudDocumentaiV1beta1DocumentPageLine>((value) =>
GoogleCloudDocumentaiV1beta1DocumentPageLine.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<GoogleCloudDocumentaiV1beta1DocumentPageParagraph>(
(value) =>
GoogleCloudDocumentaiV1beta1DocumentPageParagraph
.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
provenance: _json.containsKey('provenance')
? GoogleCloudDocumentaiV1beta1DocumentProvenance.fromJson(
_json['provenance'] as core.Map<core.String, core.dynamic>)
: null,
tables: _json.containsKey('tables')
? (_json['tables'] as core.List)
.map<GoogleCloudDocumentaiV1beta1DocumentPageTable>((value) =>
GoogleCloudDocumentaiV1beta1DocumentPageTable.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
tokens: _json.containsKey('tokens')
? (_json['tokens'] as core.List)
.map<GoogleCloudDocumentaiV1beta1DocumentPageToken>((value) =>
GoogleCloudDocumentaiV1beta1DocumentPageToken.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
transforms: _json.containsKey('transforms')
? (_json['transforms'] as core.List)
.map<GoogleCloudDocumentaiV1beta1DocumentPageMatrix>(
(value) => GoogleCloudDocumentaiV1beta1DocumentPageMatrix
.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
visualElements: _json.containsKey('visualElements')
? (_json['visualElements'] as core.List)
.map<GoogleCloudDocumentaiV1beta1DocumentPageVisualElement>(
(value) =>
GoogleCloudDocumentaiV1beta1DocumentPageVisualElement
.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
);