GoogleCloudDocumentaiV1beta3DocumentPageFormField.fromJson constructor
GoogleCloudDocumentaiV1beta3DocumentPageFormField.fromJson(
- Map _json
Implementation
GoogleCloudDocumentaiV1beta3DocumentPageFormField.fromJson(core.Map _json)
: this(
correctedKeyText: _json.containsKey('correctedKeyText')
? _json['correctedKeyText'] as core.String
: null,
correctedValueText: _json.containsKey('correctedValueText')
? _json['correctedValueText'] as core.String
: null,
fieldName: _json.containsKey('fieldName')
? GoogleCloudDocumentaiV1beta3DocumentPageLayout.fromJson(
_json['fieldName'] as core.Map<core.String, core.dynamic>)
: null,
fieldValue: _json.containsKey('fieldValue')
? GoogleCloudDocumentaiV1beta3DocumentPageLayout.fromJson(
_json['fieldValue'] as core.Map<core.String, core.dynamic>)
: null,
nameDetectedLanguages: _json.containsKey('nameDetectedLanguages')
? (_json['nameDetectedLanguages'] as core.List)
.map<GoogleCloudDocumentaiV1beta3DocumentPageDetectedLanguage>(
(value) =>
GoogleCloudDocumentaiV1beta3DocumentPageDetectedLanguage
.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
provenance: _json.containsKey('provenance')
? GoogleCloudDocumentaiV1beta3DocumentProvenance.fromJson(
_json['provenance'] as core.Map<core.String, core.dynamic>)
: null,
valueDetectedLanguages: _json.containsKey('valueDetectedLanguages')
? (_json['valueDetectedLanguages'] as core.List)
.map<GoogleCloudDocumentaiV1beta3DocumentPageDetectedLanguage>(
(value) =>
GoogleCloudDocumentaiV1beta3DocumentPageDetectedLanguage
.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
valueType: _json.containsKey('valueType')
? _json['valueType'] as core.String
: null,
);