GoogleCloudDocumentaiV1BatchProcessRequest.fromJson constructor

GoogleCloudDocumentaiV1BatchProcessRequest.fromJson(
  1. Map json_
)

Implementation

GoogleCloudDocumentaiV1BatchProcessRequest.fromJson(core.Map json_)
    : this(
        documentOutputConfig: json_.containsKey('documentOutputConfig')
            ? GoogleCloudDocumentaiV1DocumentOutputConfig.fromJson(
                json_['documentOutputConfig']
                    as core.Map<core.String, core.dynamic>)
            : null,
        inputDocuments: json_.containsKey('inputDocuments')
            ? GoogleCloudDocumentaiV1BatchDocumentsInputConfig.fromJson(
                json_['inputDocuments']
                    as core.Map<core.String, core.dynamic>)
            : null,
        labels: json_.containsKey('labels')
            ? (json_['labels'] as core.Map<core.String, core.dynamic>).map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
        processOptions: json_.containsKey('processOptions')
            ? GoogleCloudDocumentaiV1ProcessOptions.fromJson(
                json_['processOptions']
                    as core.Map<core.String, core.dynamic>)
            : null,
        skipHumanReview: json_.containsKey('skipHumanReview')
            ? json_['skipHumanReview'] as core.bool
            : null,
      );