GoogleCloudDocumentaiV1DocumentPageFormField.fromJson constructor

GoogleCloudDocumentaiV1DocumentPageFormField.fromJson(
  1. Map json_
)

Implementation

GoogleCloudDocumentaiV1DocumentPageFormField.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')
            ? GoogleCloudDocumentaiV1DocumentPageLayout.fromJson(
                json_['fieldName'] as core.Map<core.String, core.dynamic>)
            : null,
        fieldValue: json_.containsKey('fieldValue')
            ? GoogleCloudDocumentaiV1DocumentPageLayout.fromJson(
                json_['fieldValue'] as core.Map<core.String, core.dynamic>)
            : null,
        nameDetectedLanguages: json_.containsKey('nameDetectedLanguages')
            ? (json_['nameDetectedLanguages'] as core.List)
                .map((value) =>
                    GoogleCloudDocumentaiV1DocumentPageDetectedLanguage
                        .fromJson(
                            value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        provenance: json_.containsKey('provenance')
            ? GoogleCloudDocumentaiV1DocumentProvenance.fromJson(
                json_['provenance'] as core.Map<core.String, core.dynamic>)
            : null,
        valueDetectedLanguages: json_.containsKey('valueDetectedLanguages')
            ? (json_['valueDetectedLanguages'] as core.List)
                .map((value) =>
                    GoogleCloudDocumentaiV1DocumentPageDetectedLanguage
                        .fromJson(
                            value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        valueType: json_.containsKey('valueType')
            ? json_['valueType'] as core.String
            : null,
      );