GoogleCloudDocumentaiV1Document.fromJson constructor
GoogleCloudDocumentaiV1Document.fromJson(
- Map json_
Implementation
GoogleCloudDocumentaiV1Document.fromJson(core.Map json_)
: this(
chunkedDocument: json_.containsKey('chunkedDocument')
? GoogleCloudDocumentaiV1DocumentChunkedDocument.fromJson(
json_['chunkedDocument']
as core.Map<core.String, core.dynamic>)
: null,
content: json_.containsKey('content')
? json_['content'] as core.String
: null,
documentLayout: json_.containsKey('documentLayout')
? GoogleCloudDocumentaiV1DocumentDocumentLayout.fromJson(
json_['documentLayout']
as core.Map<core.String, core.dynamic>)
: null,
entities: json_.containsKey('entities')
? (json_['entities'] as core.List)
.map((value) =>
GoogleCloudDocumentaiV1DocumentEntity.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
entityRelations: json_.containsKey('entityRelations')
? (json_['entityRelations'] as core.List)
.map((value) =>
GoogleCloudDocumentaiV1DocumentEntityRelation.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
error: json_.containsKey('error')
? GoogleRpcStatus.fromJson(
json_['error'] as core.Map<core.String, core.dynamic>)
: null,
mimeType: json_.containsKey('mimeType')
? json_['mimeType'] as core.String
: null,
pages: json_.containsKey('pages')
? (json_['pages'] as core.List)
.map((value) => GoogleCloudDocumentaiV1DocumentPage.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
revisions: json_.containsKey('revisions')
? (json_['revisions'] as core.List)
.map((value) =>
GoogleCloudDocumentaiV1DocumentRevision.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
shardInfo: json_.containsKey('shardInfo')
? GoogleCloudDocumentaiV1DocumentShardInfo.fromJson(
json_['shardInfo'] as core.Map<core.String, core.dynamic>)
: null,
text: json_.containsKey('text') ? json_['text'] as core.String : null,
textChanges: json_.containsKey('textChanges')
? (json_['textChanges'] as core.List)
.map((value) =>
GoogleCloudDocumentaiV1DocumentTextChange.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
textStyles: json_.containsKey('textStyles')
? (json_['textStyles'] as core.List)
.map((value) => GoogleCloudDocumentaiV1DocumentStyle.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
uri: json_.containsKey('uri') ? json_['uri'] as core.String : null,
);