GoogleCloudDocumentaiV1beta2DocumentEntity.fromJson constructor
GoogleCloudDocumentaiV1beta2DocumentEntity.fromJson(
- Map _json
Implementation
GoogleCloudDocumentaiV1beta2DocumentEntity.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')
? GoogleCloudDocumentaiV1beta2DocumentEntityNormalizedValue
.fromJson(_json['normalizedValue']
as core.Map<core.String, core.dynamic>)
: null,
pageAnchor: _json.containsKey('pageAnchor')
? GoogleCloudDocumentaiV1beta2DocumentPageAnchor.fromJson(
_json['pageAnchor'] as core.Map<core.String, core.dynamic>)
: null,
properties: _json.containsKey('properties')
? (_json['properties'] as core.List)
.map<GoogleCloudDocumentaiV1beta2DocumentEntity>((value) =>
GoogleCloudDocumentaiV1beta2DocumentEntity.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
provenance: _json.containsKey('provenance')
? GoogleCloudDocumentaiV1beta2DocumentProvenance.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')
? GoogleCloudDocumentaiV1beta2DocumentTextAnchor.fromJson(
_json['textAnchor'] as core.Map<core.String, core.dynamic>)
: null,
type: _json.containsKey('type') ? _json['type'] as core.String : null,
);