GoogleCloudDocumentaiV1beta1DocumentPageFormField.fromJson constructor

GoogleCloudDocumentaiV1beta1DocumentPageFormField.fromJson(
  1. Map _json
)

Implementation

GoogleCloudDocumentaiV1beta1DocumentPageFormField.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')
            ? GoogleCloudDocumentaiV1beta1DocumentPageLayout.fromJson(
                _json['fieldName'] as core.Map<core.String, core.dynamic>)
            : null,
        fieldValue: _json.containsKey('fieldValue')
            ? GoogleCloudDocumentaiV1beta1DocumentPageLayout.fromJson(
                _json['fieldValue'] as core.Map<core.String, core.dynamic>)
            : null,
        nameDetectedLanguages: _json.containsKey('nameDetectedLanguages')
            ? (_json['nameDetectedLanguages'] as core.List)
                .map<GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage>(
                    (value) =>
                        GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage
                            .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,
        valueDetectedLanguages: _json.containsKey('valueDetectedLanguages')
            ? (_json['valueDetectedLanguages'] as core.List)
                .map<GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage>(
                    (value) =>
                        GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage
                            .fromJson(
                                value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        valueType: _json.containsKey('valueType')
            ? _json['valueType'] as core.String
            : null,
      );