GoogleCloudDocumentaiV1beta1DocumentEntity.fromJson constructor
GoogleCloudDocumentaiV1beta1DocumentEntity.fromJson(
- Map _json
Implementation
GoogleCloudDocumentaiV1beta1DocumentEntity.fromJson(core.Map _json)
: this(
confidence: _json.containsKey('confidence')
? (_json['confidence'] as core.num).toDouble()
: null,
id: _json.containsKey('id') ? _json['id'] as core.String : null,
mentionId: _json.containsKey('mentionId')
? _json['mentionId'] as core.String
: null,
mentionText: _json.containsKey('mentionText')
? _json['mentionText'] as core.String
: null,
normalizedValue: _json.containsKey('normalizedValue')
? GoogleCloudDocumentaiV1beta1DocumentEntityNormalizedValue
.fromJson(_json['normalizedValue']
as core.Map<core.String, core.dynamic>)
: null,
pageAnchor: _json.containsKey('pageAnchor')
? GoogleCloudDocumentaiV1beta1DocumentPageAnchor.fromJson(
_json['pageAnchor'] as core.Map<core.String, core.dynamic>)
: null,
properties: _json.containsKey('properties')
? (_json['properties'] as core.List)
.map<GoogleCloudDocumentaiV1beta1DocumentEntity>((value) =>
GoogleCloudDocumentaiV1beta1DocumentEntity.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,
redacted: _json.containsKey('redacted')
? _json['redacted'] as core.bool
: null,
textAnchor: _json.containsKey('textAnchor')
? GoogleCloudDocumentaiV1beta1DocumentTextAnchor.fromJson(
_json['textAnchor'] as core.Map<core.String, core.dynamic>)
: null,
type: _json.containsKey('type') ? _json['type'] as core.String : null,
);