GoogleCloudDocumentaiV1TrainProcessorVersionRequest.fromJson constructor

GoogleCloudDocumentaiV1TrainProcessorVersionRequest.fromJson(
  1. Map json_
)

Implementation

GoogleCloudDocumentaiV1TrainProcessorVersionRequest.fromJson(core.Map json_)
    : this(
        baseProcessorVersion: json_.containsKey('baseProcessorVersion')
            ? json_['baseProcessorVersion'] as core.String
            : null,
        customDocumentExtractionOptions: json_
                .containsKey('customDocumentExtractionOptions')
            ? GoogleCloudDocumentaiV1TrainProcessorVersionRequestCustomDocumentExtractionOptions
                .fromJson(json_['customDocumentExtractionOptions']
                    as core.Map<core.String, core.dynamic>)
            : null,
        documentSchema: json_.containsKey('documentSchema')
            ? GoogleCloudDocumentaiV1DocumentSchema.fromJson(
                json_['documentSchema']
                    as core.Map<core.String, core.dynamic>)
            : null,
        inputData: json_.containsKey('inputData')
            ? GoogleCloudDocumentaiV1TrainProcessorVersionRequestInputData
                .fromJson(
                    json_['inputData'] as core.Map<core.String, core.dynamic>)
            : null,
        processorVersion: json_.containsKey('processorVersion')
            ? GoogleCloudDocumentaiV1ProcessorVersion.fromJson(
                json_['processorVersion']
                    as core.Map<core.String, core.dynamic>)
            : null,
      );